-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
mixing @ReqArgsC and @Data on inner classes breaks Organize Imports. #398
Comments
👤 reinierz 🕗 Jan 07, 2012 at 12:57 UTC Paste following file into an eclipse project: public class Outer {
} and hit organize import (the shortcut, or, Source->Organize Imports). An error dialog appears with 'AST must not be null'. The cause is our old friend, setSourceRange, barfing on whatever mix of -1 and 0 values it doesn't like. Reported to work fine in 0.10.2 and broken in 0.10.4 and 0.10.6 Related forum discussion: https://groups.google.com/forum/﹟!topic/project-lombok/O1hVCF0WkkM |
👤 r.spilker 🕗 Jan 09, 2012 at 21:12 UTC RequiredArgsC is a red herring. The actual culprit are the parentheses after the annotation name. For example, using @ Getter() will cause the exact same error. |
👤 r.spilker 🕗 Jan 10, 2012 at 00:09 UTC Looks like 5cc928f broke it. I think we should revert change the behavior of PatchFixed﹟fixRetrieveRightBraceOrSemiColonPosition to just return the original. This change was made to fix issue #336, where a save action would inadvertently add a final modifier to a field annotated with @ Setter. I think that that issue is less important than this one. I have been looking into creating a fix for both, but so far without success. |
👤 askoning 🕗 Jan 16, 2012 at 21:34 UTC Reverted the old behaviour. We should take a better look at this problem later. Fixed in 7627d03 |
👤 reinierz 🕗 Jan 18, 2012 at 23:58 UTC Jappe figured out how to fix it properly and reverted the revert. I was tempted to revert his reverting of the revert for poetry's sake, but, actually, it fixes everything, so, yeah. This will be in the any-day-now 0.10.8 release! |
End of migration |
Migrated from Google Code (issue 325)
The text was updated successfully, but these errors were encountered: