aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@tipit.to>2009-12-21 12:06:31 +0100
committerReinier Zwitserloot <reinier@tipit.to>2009-12-21 12:06:31 +0100
commit2c8032a243b6788f9d28fff712c897509f517852 (patch)
treeda6a16f878a6a55082a9d4f90137fc616b6b8aff /src
parente09ce47465a8adc28c72d7716e703c6090856279 (diff)
downloadlombok-2c8032a243b6788f9d28fff712c897509f517852.tar.gz
lombok-2c8032a243b6788f9d28fff712c897509f517852.tar.bz2
lombok-2c8032a243b6788f9d28fff712c897509f517852.zip
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>'.
Diffstat (limited to 'src')
-rw-r--r--src/core/lombok/eclipse/Eclipse.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core/lombok/eclipse/Eclipse.java b/src/core/lombok/eclipse/Eclipse.java
index 41d9300f..3adaf417 100644
--- a/src/core/lombok/eclipse/Eclipse.java
+++ b/src/core/lombok/eclipse/Eclipse.java
@@ -256,9 +256,12 @@ public class Eclipse {
}
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;
}