aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/handlers/HandleLog.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/handlers/HandleLog.java b/src/core/lombok/eclipse/handlers/HandleLog.java
index 23768226..08f3e6f2 100644
--- a/src/core/lombok/eclipse/handlers/HandleLog.java
+++ b/src/core/lombok/eclipse/handlers/HandleLog.java
@@ -35,6 +35,7 @@ import lombok.eclipse.EclipseNode;
import lombok.eclipse.handlers.EclipseHandlerUtil.MemberExistsResult;
import org.eclipse.jdt.internal.compiler.ast.Annotation;
+import org.eclipse.jdt.internal.compiler.ast.ClassLiteralAccess;
import org.eclipse.jdt.internal.compiler.ast.Expression;
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
import org.eclipse.jdt.internal.compiler.ast.MessageSend;
@@ -261,7 +262,10 @@ public class HandleLog {
}
Expression createFactoryParameter(String typeName, Annotation source){
- return createNameReference(typeName + ".class", source);
+ TypeReference type = createTypeReference(typeName, source);
+ ClassLiteralAccess result = new ClassLiteralAccess(source.sourceEnd, type);
+ Eclipse.setGeneratedBy(result, source);
+ return result;
};
}
}