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

Comments

Projects
None yet
2 participants
@lombokissues
Collaborator

lombokissues commented Jul 14, 2015

Migrated from Google Code (issue 396)

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

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

Collaborator

lombokissues commented Jul 14, 2015

👤 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

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

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

🔗 SimpleProperty.java View file

Collaborator

lombokissues commented Jul 14, 2015

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

🔗 SimpleProperty.java View file

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

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

Could be related to issue #464

Collaborator

lombokissues commented Jul 14, 2015

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

Could be related to issue #464

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

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.

Collaborator

lombokissues commented Jul 14, 2015

👤 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

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

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

Issue #478 has been merged into this issue.

Collaborator

lombokissues commented Jul 14, 2015

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

Issue #478 has been merged into this issue.

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

End of migration

Collaborator

lombokissues commented Jul 14, 2015

End of migration

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