Permalink
Browse files

Fixes issue #84: @DaTa and many other annotations couldn't deal with …

…wildcard generics that had a bound on them, so, for example, a field typed as 'List<? extends Number>'.
  • Loading branch information...
Reinier Zwitserloot
Reinier Zwitserloot committed Dec 21, 2009
1 parent e09ce47 commit 2c8032a243b6788f9d28fff712c897509f517852
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/core/lombok/eclipse/Eclipse.java
@@ -256,9 +256,12 @@ public static TypeReference copyType(TypeReference ref, ASTNode source) {
}
if (ref instanceof Wildcard) {
Wildcard wildcard = new Wildcard(((Wildcard)ref).kind);
wildcard.sourceStart = ref.sourceStart;
wildcard.sourceEnd = ref.sourceEnd;
Wildcard original = (Wildcard)ref;
Wildcard wildcard = new Wildcard(original.kind);
wildcard.sourceStart = original.sourceStart;
wildcard.sourceEnd = original.sourceEnd;
if (original.bound != null) wildcard.bound = copyType(original.bound, source);
setGeneratedBy(wildcard, source);
return wildcard;
}

0 comments on commit 2c8032a

Please sign in to comment.