Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Loop bytecode from ECJ differs from javac(The loop bytecode differences causes problems in jdb)
Loop bytecode from ECJ differs from javac [message #1862468] Wed, 06 December 2023 16:08
Nicolas Leduc is currently offline Nicolas LeducFriend
Messages: 1
Registered: December 2023
Junior Member
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
Previous Topic:How to capture the behavior of preferences in Eclipse using the org.eclipse.core.runtime.preferences
Next Topic:How to import java 8 application on eclipse 2020 (java 15)
Goto Forum:
  


Current Time: Sat Jan 18 09:46:25 GMT 2025

Powered by FUDForum. Page generated in 0.02914 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top