Skip to content

Commit

Permalink
Patching Eclipse compiler's bug, MPS-11528
Browse files Browse the repository at this point in the history
  • Loading branch information
fisakov committed Feb 11, 2011
1 parent b7a50fe commit 769976b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/kernel/source/jetbrains/mps/compiler/JavaCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ public void compile(IClassPathItem classPath) {
org.eclipse.jdt.internal.compiler.Compiler c = new Compiler(new MyNameEnvironment(classPath), new MyErrorHandlingPolicy(), options, new MyCompilerRequestor(), new DefaultProblemFactory(), null);
//c.options.verbose = true;

c.compile(myCompilationUnits.values().toArray(new CompilationUnit[0]));
try {
c.compile(myCompilationUnits.values().toArray(new CompilationUnit[0]));
}
catch (RuntimeException ex) {
LOG.fatal("Compilation failed", ex);
}
}

public ClassLoader getClassLoader(ClassLoader parent) {
Expand Down

0 comments on commit 769976b

Please sign in to comment.