aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/eclipse/agent
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2011-12-19 20:43:35 +0100
committerRoel Spilker <r.spilker@gmail.com>2011-12-19 20:43:35 +0100
commit75179dfb414f3449c2c6df79e9670868a7cc9635 (patch)
tree77a2f819bb7d05dce6701a245d3a67cb6688b2b5 /src/eclipseAgent/lombok/eclipse/agent
parent232d5edc355043a8616f869da670ac2c4376032e (diff)
parentb476825fc723d10098a11baa61876f4d23eb4c45 (diff)
downloadlombok-75179dfb414f3449c2c6df79e9670868a7cc9635.tar.gz
lombok-75179dfb414f3449c2c6df79e9670868a7cc9635.tar.bz2
lombok-75179dfb414f3449c2c6df79e9670868a7cc9635.zip
Merge branch 'Issue_308' of https://github.com/jvanderhel/lombok into jvanderhel-Issue_308
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent')
-rw-r--r--src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
index cc72c206..961d80d7 100644
--- a/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
+++ b/src/eclipseAgent/lombok/eclipse/agent/PatchDelegate.java
@@ -38,6 +38,7 @@ import lombok.core.AST.Kind;
import lombok.eclipse.EclipseAST;
import lombok.eclipse.EclipseNode;
import lombok.eclipse.TransformEclipseAST;
+import lombok.eclipse.handlers.SetGeneratedByVisitor;
import org.eclipse.jdt.internal.compiler.CompilationResult;
import org.eclipse.jdt.internal.compiler.ast.ASTNode;
@@ -324,7 +325,11 @@ public class PatchDelegate {
for (BindingTuple pair : methods) {
EclipseNode annNode = typeNode.getAst().get(pair.responsible);
MethodDeclaration method = createDelegateMethod(pair.fieldName, typeNode, pair, top.compilationResult, annNode);
- if (method != null) injectMethod(typeNode, method);
+ if (method != null) {
+ SetGeneratedByVisitor visitor = new SetGeneratedByVisitor(annNode.get());
+ method.traverse(visitor, ((TypeDeclaration)typeNode.get()).scope);
+ injectMethod(typeNode, method);
+ }
}
}