Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lombokissues opened this issue Jul 14, 2015 · 6 comments
Closed
Assignees
Milestone

Comments

@lombokissues
Copy link

Migrated from Google Code (issue 396)

@lombokissues
Copy link
Author

👤 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
Copy link
Author

👤 vasseur.emmanuel   🕗 Jul 12, 2012 at 15:58 UTC

🔗 SimpleProperty.java View file

@lombokissues
Copy link
Author

👤 r.spilker   🕗 Jul 16, 2012 at 11:21 UTC

Could be related to issue #464

@lombokissues
Copy link
Author

👤 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
Copy link
Author

👤 reinierz   🕗 Aug 12, 2012 at 22:36 UTC

Issue #478 has been merged into this issue.

@lombokissues
Copy link
Author

End of migration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants