Cannot set breakpoint in eclipse #450

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

Projects

None yet

1 participant

@lombokissues
Collaborator

Migrated from Google Code (issue 377)

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— May 28, 2012 at 13:57 UTC

What steps will reproduce the problem?
1.Create blank project using eclipse eclipse-java-indigo-SR1-win32-x86_64
2.Add getter to Main class
3.Add a breakpoint to main method

What is the expected output? What do you see instead?
Break point should be set to main method. Instead it is set to @ Getter.

What version of the product are you using? On what operating system?
lombok 0.11.0 / Windows 7

Please provide any additional information below.

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— May 28, 2012 at 14:25 UTC

Additional info: this only occurs if property is not defined at the beginning of the class.

When I move @ Getter to the beginning, I can set breakpoint.

Still, this is a defect...

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— May 29, 2012 at 08:49 UTC

Additional info:
Setting breakpoint after last @ Getter works.
Setting breakpoint before last @ Getter sets breakpoint to the nearest follwing @ Getter

Hope this gets fixed soon ;-)

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— May 29, 2012 at 10:23 UTC

Additional info:
"3.Add a breakpoint to main method" means add a line breakpoint inside main method. Method entry breakpoint actually works properly.

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— Jun 12, 2012 at 08:17 UTC

This bug has proved to be such a showstopper during debugging that we've decided to remove Lombok from our projects.

@lombokissues
Collaborator

๐Ÿ‘ค r.spilker ย  ๐Ÿ•— Jul 02, 2012 at 21:22 UTC

Issue #240 has been merged into this issue.

@lombokissues
Collaborator

๐Ÿ‘ค grootjans ย  ๐Ÿ•— Jul 02, 2012 at 21:29 UTC

Fixed with 3c0ed22.

This should be part of the next release. An earlier fix, of issue #228 caused this.

@lombokissues lombokissues added this to the 0.11.1 milestone Jul 14, 2015
@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— Jul 12, 2012 at 08:39 UTC

This hasn't been fixed in lombok-0.11.2.jar.

In original example:

01> import lombok.Getter;
02> public class Main {
03> public static void main(String[] args) {
04> Main m = new Main ();
05> int y = m.getX();
06> }
07> @ Getter
08> int x;
09> }

setting breakpoint to on line 5 sets it on line 8.

@lombokissues
Collaborator

๐Ÿ‘ค ludvikk ย  ๐Ÿ•— Aug 28, 2012 at 07:44 UTC

My mistake - I forgot to update Eclipse plugin.
I can confirm fix works.

Thanks

@lombokissues
Collaborator

End of migration

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