mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
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:
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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user