diff options
author | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-12-13 00:32:48 +0100 |
---|---|---|
committer | jvanderhel <Jappe.vanderhel@gmail.com> | 2011-12-13 00:32:48 +0100 |
commit | 71c48fb991c657aaa30b805bc0e10e5bd00bec3b (patch) | |
tree | e4702f95bfaef2f423887f96190861d60f49ba38 /src/eclipseAgent/lombok | |
parent | b476825fc723d10098a11baa61876f4d23eb4c45 (diff) | |
download | lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.tar.gz lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.tar.bz2 lombok-71c48fb991c657aaa30b805bc0e10e5bd00bec3b.zip |
Fix for Issue 315: HandleLogger now sets all its sourcepositions and generatedBy's. convertToFieldDeclaration now als marks the resulting FieldDeclaration as isGenerated
Diffstat (limited to 'src/eclipseAgent/lombok')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java index 25f7d7ce..1a3828c1 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java +++ b/src/eclipseAgent/lombok/eclipse/agent/EclipsePatcher.java @@ -310,6 +310,13 @@ public class EclipsePatcher extends Agent { .wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "setIsGeneratedFlag", "void", "org.eclipse.jdt.core.dom.ASTNode", "org.eclipse.jdt.internal.compiler.ast.ASTNode")) .transplant().build()); + + sm.addScript(ScriptBuilder.wrapReturnValue() + .target(new MethodTarget("org.eclipse.jdt.core.dom.ASTConverter", "convertToFieldDeclaration", "org.eclipse.jdt.core.dom.FieldDeclaration", "org.eclipse.jdt.internal.compiler.ast.FieldDeclaration")) + .request(StackRequest.PARAM1, StackRequest.RETURN_VALUE) + .wrapMethod(new Hook("lombok.eclipse.agent.PatchFixes", "setIsGeneratedFlag", "void", + "org.eclipse.jdt.core.dom.ASTNode", "org.eclipse.jdt.internal.compiler.ast.ASTNode")) + .transplant().build()); sm.addScript(ScriptBuilder.wrapMethodCall() .target(new TargetMatcher() { |