-
-
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
Eclipse reports error after save when using @Getter and/or @Setter #236
Comments
👤 bernd.vanvelsen 🕗 Nov 23, 2010 at 07:40 UTC What steps will reproduce the problem?
What is the expected output? What do you see instead? stacktrace: What version of the product are you using? On what operating system? |
👤 reinierz 🕗 Nov 23, 2010 at 07:42 UTC Do you have any save actions enabled? If not, does the edge release fix it? Edge is at: https://projectlombok.org/download-edge.html |
👤 bernd.vanvelsen 🕗 Nov 23, 2010 at 07:57 UTC the edge version did not solve the problem. I have several save actions enabled. I tried enabling and disabling several save actions to pinpoint the exception and the problems seems to be somewhere in the 'format source code' option. If I disable that it saves without errors. attached a screenshot of my save actions |
👤 reinierz 🕗 Nov 23, 2010 at 07:58 UTC That gives us something to go on. Thanks! |
👤 grootjans 🕗 Jan 31, 2011 at 23:24 UTC This problem is related to the location of the generated methods by the getter and the setter annotation (only for @ Getter and @ Setter directly on fields). They are on exactly the same place as the annotation. The method that throws an error, 'computeMergedMemberDeclarations' uses the locations but doesn't account for this situation. Thus it thinks there must be an inner class as it has eliminated all other possibilities, and this fails. This assumption occurs on org.eclipse.jdt.internal.formatter.CodeFormatterVisitor line 393. This issue was also present in the 0.9.3 version. |
👤 grootjans 🕗 Feb 07, 2011 at 18:56 UTC |
👤 grootjans 🕗 Jun 20, 2011 at 17:57 UTC |
👤 grootjans 🕗 Jun 20, 2011 at 17:57 UTC Duplicate of issue #163 |
End of migration |
Migrated from Google Code (issue 163)
The text was updated successfully, but these errors were encountered: