aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-06 17:39:04 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-06 17:39:04 +0100
commit529a480ca998f7eab16ff9745e8fb08aa28072e5 (patch)
tree5d4727ebf6478b536d42d121835ea476f64b2357 /src
parent0c7b29f8e7009d1433e2386f710c78801f119ebb (diff)
downloadlombok-529a480ca998f7eab16ff9745e8fb08aa28072e5.tar.gz
lombok-529a480ca998f7eab16ff9745e8fb08aa28072e5.tar.bz2
lombok-529a480ca998f7eab16ff9745e8fb08aa28072e5.zip
Use a ClassLiteralAccess instead of a NameReference
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;
};
}
}