No functional change, but runPostCompiler in eclipse patching is no longer transplanted. It shouldn't matter (runPostCompiler will call lombok.jar code, so if there is a classloader issue, transplanting won't help), and roel thinks it might help debug an issue with Springsource gradle plugin for eclipse.

This commit is contained in:
Reinier Zwitserloot committed 2013-10-10 23:25:15 +02:00
1 parent a9b4fb0c68
commit ab3ee68c38
2 files changed
+1 -2

No files matched your search

@@ -275,7 +275,6 @@ public class EclipsePatcher extends Agent {
.methodToWrap(new Hook("org.eclipse.jdt.internal.compiler.ClassFile", "getBytes", "byte[]"))
.wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "runPostCompiler", "byte[]", "byte[]", "java.lang.String"))
.requestExtra(StackRequest.PARAM3)
.transplant()
.build());
}
@@ -329,7 +329,7 @@ public class PatchFixes {
return newSimpleNames;
}
public static byte[] runPostCompiler(byte[] bytes, String fileName) {
public static byte[] runPostCompiler(byte[] bytes, String fileName) {
byte[] transformed = PostCompiler.applyTransformations(bytes, fileName, DiagnosticsReceiver.CONSOLE);
return transformed == null ? bytes : transformed;
}