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

@Getter or @Setter on a static field no longer works in v0.9.3 #209

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

Comments

Projects
None yet
1 participant
@lombokissues
Collaborator

lombokissues commented Jul 14, 2015

Migrated from Google Code (issue 136)

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 reinierz   🕗 Jul 28, 2010 at 16:37 UTC

Try to compile this:

class Test {
@ lombok.Getter int foo;
}

and lombok generates a static getter method that contains "return this.foo;" which obviously won't compile.

Collaborator

lombokissues commented Jul 14, 2015

👤 reinierz   🕗 Jul 28, 2010 at 16:37 UTC

Try to compile this:

class Test {
@ lombok.Getter int foo;
}

and lombok generates a static getter method that contains "return this.foo;" which obviously won't compile.

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 reinierz   🕗 Jul 28, 2010 at 16:50 UTC

Test case confirming this problem has been checked in: 83b4dd8

Collaborator

lombokissues commented Jul 14, 2015

👤 reinierz   🕗 Jul 28, 2010 at 16:50 UTC

Test case confirming this problem has been checked in: 83b4dd8

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 reinierz   🕗 Jul 28, 2010 at 17:12 UTC

Fixed in 357fd95

Edge release with this fix is available from here: https://projectlombok.org/download-edge.html

Collaborator

lombokissues commented Jul 14, 2015

👤 reinierz   🕗 Jul 28, 2010 at 17:12 UTC

Fixed in 357fd95

Edge release with this fix is available from here: https://projectlombok.org/download-edge.html

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 uebercoder   🕗 Sep 02, 2010 at 11:23 UTC

@ Data also doesn't create getter and setter for static members.

Collaborator

lombokissues commented Jul 14, 2015

👤 uebercoder   🕗 Sep 02, 2010 at 11:23 UTC

@ Data also doesn't create getter and setter for static members.

@lombokissues

This comment has been minimized.

Show comment
Hide comment
@lombokissues

lombokissues Jul 14, 2015

Collaborator

👤 reinierz   🕗 Sep 03, 2010 at 11:50 UTC

uebercoder: That's by design. If you want them, put @ Getter and @ Setter on the static field.

Collaborator

lombokissues commented Jul 14, 2015

👤 reinierz   🕗 Sep 03, 2010 at 11:50 UTC

uebercoder: That's by design. If you want them, put @ Getter and @ Setter on the static field.

@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