mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
trying to get to the bottom of parameterized type bug
This commit is contained in:
@@ -409,13 +409,15 @@ public class ErrorCheckerService implements Runnable{
|
||||
|
||||
}
|
||||
|
||||
public int compilationUnitState = 0;
|
||||
|
||||
protected boolean checkCode() {
|
||||
//log("checkCode() " + textModified.get() );
|
||||
log("checkCode() " + textModified.get());
|
||||
lastTimeStamp = System.currentTimeMillis();
|
||||
try {
|
||||
sourceCode = preprocessCode(editor.getSketch().getMainProgram());
|
||||
|
||||
compilationUnitState = 0;
|
||||
syntaxCheck();
|
||||
log(editor.getSketch().getName() + "1 MCO "
|
||||
+ mainClassOffset);
|
||||
@@ -503,7 +505,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
cu = (CompilationUnit) parser.createAST(null);
|
||||
}
|
||||
}
|
||||
|
||||
compilationUnitState = 1;
|
||||
synchronized (problemsList) {
|
||||
|
||||
// Store errors returned by the ast parser
|
||||
@@ -557,7 +559,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
cu = (CompilationUnit) parser.createAST(null);
|
||||
}
|
||||
}
|
||||
|
||||
compilationUnitState = 2;
|
||||
// Currently (Sept, 2012) I'm using Java's reflection api to load the
|
||||
// CompilationChecker class(from CompilationChecker.jar) that houses the
|
||||
// Eclispe JDT compiler, and call its getErrorsAsObj method to obtain
|
||||
|
||||
Reference in New Issue
Block a user