Navigation Menu

Skip to content

Commit

Permalink
Fixes issue #84: @DaTa and many other annotations couldn't deal with …
Browse files Browse the repository at this point in the history
…wildcard generics that had a bound on them, so, for example, a field typed as 'List<? extends Number>'.
  • Loading branch information
Reinier Zwitserloot committed Dec 21, 2009
1 parent e09ce47 commit 2c8032a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/core/lombok/eclipse/Eclipse.java
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2c8032a

Please sign in to comment.