aboutsummaryrefslogtreecommitdiff
path: root/src/lombok/eclipse/handlers/HandleData.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-07-14 00:15:36 +0200
committerReinier Zwitserloot <reinier@tipit.to>2009-07-14 00:15:36 +0200
commitaa40323ae8dde889f4bcf21304e5cffdc0003b4c (patch)
treea58259d3e8d9dd5fe1cd3d253d930d951d9513a3 /src/lombok/eclipse/handlers/HandleData.java
parentba6f353fd867f641f6ab155c2ab83e47e0c9bed4 (diff)
downloadlombok-aa40323ae8dde889f4bcf21304e5cffdc0003b4c.tar.gz
lombok-aa40323ae8dde889f4bcf21304e5cffdc0003b4c.tar.bz2
lombok-aa40323ae8dde889f4bcf21304e5cffdc0003b4c.zip
Fixed a problem where @Data with a static constructor and generics params on the class would generate errors regarding IllegalArgumentException in setSourcePosition in ASTNode.
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleData.java')
-rw-r--r--src/lombok/eclipse/handlers/HandleData.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/handlers/HandleData.java b/src/lombok/eclipse/handlers/HandleData.java
index 066361d2..73ff79b4 100644
--- a/src/lombok/eclipse/handlers/HandleData.java
+++ b/src/lombok/eclipse/handlers/HandleData.java
@@ -258,7 +258,7 @@ public class HandleData implements EclipseAnnotationHandler<Data> {
TypeReference[] refs = new TypeReference[typeDecl.typeParameters.length];
int idx = 0;
for ( TypeParameter param : typeDecl.typeParameters ) {
- refs[idx++] = new SingleTypeReference(param.name, 0);
+ refs[idx++] = new SingleTypeReference(param.name, (long)param.sourceStart << 32 | param.sourceEnd);
}
constructor.returnType = new ParameterizedSingleTypeReference(typeDecl.name, refs, 0, p);
} else constructor.returnType = new SingleTypeReference(((TypeDeclaration)type.get()).name, p);