aboutsummaryrefslogtreecommitdiff
path: root/src_eclipseagent/java/lombok
diff options
context:
space:
mode:
Diffstat (limited to 'src_eclipseagent/java/lombok')
-rw-r--r--src_eclipseagent/java/lombok/ClassLoaderWorkaround.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src_eclipseagent/java/lombok/ClassLoaderWorkaround.java b/src_eclipseagent/java/lombok/ClassLoaderWorkaround.java
index a3fc1521..4c851a0e 100644
--- a/src_eclipseagent/java/lombok/ClassLoaderWorkaround.java
+++ b/src_eclipseagent/java/lombok/ClassLoaderWorkaround.java
@@ -86,7 +86,12 @@ public class ClassLoaderWorkaround {
Class<?> c = loader.loadClass("lombok.eclipse.TransformEclipseAST");
for ( Method m : c.getMethods() ) {
if ( m.getName().equals("transform") ) {
+ Class<?>[] types = m.getParameterTypes();
+ if ( types.length != 2 ) continue;
+ if ( !types[0].getName().equals("org.eclipse.jdt.internal.compiler.parser.Parser") ) continue;
+ if ( !types[1].getName().equals("org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration") ) continue;
transform = m;
+ break;
}
}
} catch ( ClassNotFoundException ignore ) {}