diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-23 08:04:44 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-23 08:04:44 +0200 |
commit | 8bbdcec6fad6edf8f335f9e0c6899fddc56e07c1 (patch) | |
tree | 2f9c6d2c92f0723454eb8486e1a18dd178d0e885 /src/lombok/eclipse/handlers/HandleSetter.java | |
parent | 6c82a3c780539825157f721fcfe1a8894e73b161 (diff) | |
download | lombok-8bbdcec6fad6edf8f335f9e0c6899fddc56e07c1.tar.gz lombok-8bbdcec6fad6edf8f335f9e0c6899fddc56e07c1.tar.bz2 lombok-8bbdcec6fad6edf8f335f9e0c6899fddc56e07c1.zip |
Figured out that our previous act of just assigning TypeReference objects directly to other nodes (e.g. from a FieldDeclaration's type to a method argument) is NOT a good idea, as this screws up when
the TypeReference object represents a generic type (like 'T') - each instance of a generic type has a different resolution, but 1 TypeReference object can only hold 1 resolution.
Thus, a copyType() method has been written, and the Handle* classes have been updated to use it.
Also, generateEquals() is half-finished in HandleData.
Diffstat (limited to 'src/lombok/eclipse/handlers/HandleSetter.java')
-rw-r--r-- | src/lombok/eclipse/handlers/HandleSetter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lombok/eclipse/handlers/HandleSetter.java b/src/lombok/eclipse/handlers/HandleSetter.java index d33594b1..2367d66d 100644 --- a/src/lombok/eclipse/handlers/HandleSetter.java +++ b/src/lombok/eclipse/handlers/HandleSetter.java @@ -95,7 +95,7 @@ public class HandleSetter implements EclipseAnnotationHandler<Setter> { method.modifiers = modifier; method.returnType = TypeReference.baseTypeReference(TypeIds.T_void, 0); method.annotations = null; - Argument param = new Argument(field.name, pos, field.type, 0); + Argument param = new Argument(field.name, pos, Eclipse.copyType(field.type), 0); method.arguments = new Argument[] { param }; method.selector = name.toCharArray(); method.binding = null; |