aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Eichhorn <peichhor@web.de>2012-07-13 15:27:52 +0200
committerPhilipp Eichhorn <peichhor@web.de>2012-07-13 15:27:52 +0200
commit06826342f3be58cfb422f291f89e29be2cfde7f0 (patch)
treeb11625b5869ee4f89ce66ed42862f60eada2c4c2 /src
parent02446794b09682fc5e07bbaa298c9908772cbf42 (diff)
downloadlombok-06826342f3be58cfb422f291f89e29be2cfde7f0.tar.gz
lombok-06826342f3be58cfb422f291f89e29be2cfde7f0.tar.bz2
lombok-06826342f3be58cfb422f291f89e29be2cfde7f0.zip
Fixed issue 399: @ExtensionMethod broken for javac in nearly all cases
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/javac/handlers/HandleExtensionMethod.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core/lombok/javac/handlers/HandleExtensionMethod.java b/src/core/lombok/javac/handlers/HandleExtensionMethod.java
index 2df6be45..92d7c0e4 100644
--- a/src/core/lombok/javac/handlers/HandleExtensionMethod.java
+++ b/src/core/lombok/javac/handlers/HandleExtensionMethod.java
@@ -55,7 +55,6 @@ import com.sun.tools.javac.tree.JCTree.JCExpression;
import com.sun.tools.javac.tree.JCTree.JCFieldAccess;
import com.sun.tools.javac.tree.JCTree.JCIdent;
import com.sun.tools.javac.tree.JCTree.JCMethodInvocation;
-import com.sun.tools.javac.tree.TreeMaker;
/**
* Handles the {@link ExtensionMethod} annotation for javac.
@@ -180,10 +179,7 @@ public class HandleExtensionMethod extends JavacAnnotationHandler<ExtensionMetho
Type firstArgType = types.erasure(extensionMethodType.asMethodType().argtypes.get(0));
if (!types.isAssignable(receiverType, firstArgType)) continue;
methodCall.args = methodCall.args.prepend(receiver);
-
- TreeMaker maker = annotationNode.getTreeMaker();
- JCIdent extensionClassIdent = maker.Ident(annotationNode.toName(extensionProvider.toString()));
- methodCall.meth = maker.Select(extensionClassIdent, annotationNode.toName(methodName));
+ methodCall.meth = chainDotsString(annotationNode, extensionProvider.toString() + "." + methodName);
return;
}
}