Loop bytecode from ECJ differs from javac [message #1862468] |
Wed, 06 December 2023 11:08 |
Eclipse User |
|
|
|
Hello,
I am teaching Java and I discovered a bug when using the debugger with code compiled with EC. In Eclipse, if you place a breakpoint on the line containing a while() statement, the first time you click continue the code won't run but after that the continue work as expected. In VSCode and jdb, the debugger stop one time and after that the breakpoint is ignored. When using javac and jdb, everthing work as expected.
So I looked at the bytecodes with javap and found that the loops don't generate the same bytecode between ECJ and javac. I want to know why the generated bytecode differs and if it is possible to make ECJ generate the same code as javac for the loops?
Thanks and have a great day
Nicolas
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds