@AllArgsConstructor with staticName does not compile on generic classes #469

Closed
lombokissues opened this Issue Jul 14, 2015 · 6 comments

Projects

None yet

2 participants

@lombokissues
Collaborator

Migrated from Google Code (issue 396)

@lombokissues
Collaborator

๐Ÿ‘ค vasseur.emmanuel ย  ๐Ÿ•— Jul 12, 2012 at 15:58 UTC

This code fails on compile (but works in eclipse) :

@ lombok.AllArgsConstructor(staticName="create")
public class SimpleProperty<T> {
private Class<T> propertyClass;
}

>> javac -cp lombok-0.11.2.jar SimpleProperty.java
error: cannot find symbol
symbol : constructor SimpleProperty(java.lang.Class<T>)
location: class SimpleProperty<T>
1 error

If I remove staticName="create" javac works.

The example is attached.


Java version : 1.6.0_32
Lombok version : 0.11.2
OS : Windows XP

@lombokissues
Collaborator

๐Ÿ‘ค vasseur.emmanuel ย  ๐Ÿ•— Jul 12, 2012 at 15:58 UTC

๐Ÿ”— SimpleProperty.java View file

@lombokissues
Collaborator

๐Ÿ‘ค r.spilker ย  ๐Ÿ•— Jul 16, 2012 at 11:21 UTC

Could be related to issue #464

@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Jul 16, 2012 at 22:21 UTC

Should be fixed now. You can download an edge release with the fix here:

https://projectlombok.org/download-edge.html

it'll be in 0.11.4, officially.

@lombokissues lombokissues added this to the 0.11.4 milestone Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค reinierz ย  ๐Ÿ•— Aug 12, 2012 at 22:36 UTC

Issue #478 has been merged into this issue.

@lombokissues
Collaborator

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment