We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The attached file fails to properly delombok with 1.16.8. 1.16.6 works correctly.
import java.util.List; import lombok.AccessLevel; import lombok.Getter; import lombok.Setter; import lombok.val; public class DelombokLoopError { @Getter private String internalStuff; public void doStuff(final List<String> stuff) { int endIndex; for (endIndex = stuff.size() - 1; endIndex >= 0; endIndex--) { } } }
1.16.6 result (correct):
// Generated by delombok at Wed Apr 06 21:47:16 NOVT 2016 import java.util.List; import lombok.Setter; import lombok.val; public class DelombokLoopError { private String internalStuff; public void doStuff(final List<String> stuff) { int endIndex; for (endIndex = stuff.size() - 1; endIndex >= 0; endIndex--) { } } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public String getInternalStuff() { return this.internalStuff; } }
1.16.8 result (incorrect):
// Generated by delombok at Wed Apr 06 21:46:51 NOVT 2016 import java.util.List; import lombok.Setter; import lombok.val; public class DelombokLoopError { private String internalStuff; public void doStuff(final List<String> stuff) { int endIndex; for (endIndex = stuff.size() - 1; ; endIndex >= 0; endIndex--) { } } @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") public String getInternalStuff() { return this.internalStuff; } }
Note the double semicolon in the for loop, which makes the code fail to compile.
Without the @Getter field internalStuff, the code delomboks correctly. The mere existence of any kind of @Getter field seems to produce this behavior.
@Getter
internalStuff
DelombokLoopError.java.txt
The text was updated successfully, but these errors were encountered:
Still not fixed in 1.16.10.
Sorry, something went wrong.
Fix for issue #1076
fa2ff14
It is fixed now. Can you try out the edge release and tell us if it fixes your problem?
Seems fixed for me. Thank you!
No branches or pull requests
The attached file fails to properly delombok with 1.16.8. 1.16.6 works correctly.
1.16.6 result (correct):
1.16.8 result (incorrect):
Note the double semicolon in the for loop, which makes the code fail to compile.
Without the
@Getter
fieldinternalStuff
, the code delomboks correctly. The mere existence of any kind of@Getter
field seems to produce this behavior.DelombokLoopError.java.txt
The text was updated successfully, but these errors were encountered: