diff options
author | Philipp Eichhorn <peichhor@web.de> | 2012-07-13 15:27:52 +0200 |
---|---|---|
committer | Philipp Eichhorn <peichhor@web.de> | 2012-07-13 15:27:52 +0200 |
commit | 06826342f3be58cfb422f291f89e29be2cfde7f0 (patch) | |
tree | b11625b5869ee4f89ce66ed42862f60eada2c4c2 /src | |
parent | 02446794b09682fc5e07bbaa298c9908772cbf42 (diff) | |
download | lombok-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.java | 6 |
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; } } |