mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
groovyc: preserve compatibility with old APIs
This commit is contained in:
@@ -313,9 +313,14 @@ public class DependentGroovycRunner {
|
||||
}
|
||||
|
||||
private static CompilationUnit createStubGenerator(final CompilerConfiguration config, final GroovyClassLoader classLoader, final GroovyClassLoader transformLoader, final Queue mailbox, final GroovyCompilerWrapper wrapper) {
|
||||
final JavaAwareCompilationUnit unit = new JavaAwareCompilationUnit(config, classLoader, transformLoader) {
|
||||
final JavaAwareCompilationUnit unit = new JavaAwareCompilationUnit(config, classLoader) {
|
||||
private boolean annoRemovedAdded;
|
||||
|
||||
@Override
|
||||
public GroovyClassLoader getTransformLoader() {
|
||||
return transformLoader;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addPhaseOperation(PrimaryClassNodeOperation op, int phase) {
|
||||
if (!annoRemovedAdded && mailbox == null && phase == Phases.CONVERSION && op.getClass().getName().startsWith("org.codehaus.groovy.tools.javac.JavaAwareCompilationUnit$")) {
|
||||
|
||||
Reference in New Issue
Block a user