This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After editing some lines during debugging, saving the source and debug-fixing it, the editor combo box (where all variables and methods are being listed) is empty. A maybe-related NFE appeared in messages.log. Using NetBeans Dev 20040927 with JDK 1.4.2_05. Attaching messages.log.
Created attachment 17900 [details] messages.log
After a fresh start, changing a class during debugging and debug-fixing it, it happened again. But this time without any exception. The combo box is just empty.
Created attachment 17902 [details] Sample source where it fails often
Tom, could you please look at the exception? It seems to come from javac.
I cannot reproduce the empty combo-box problem with the latest build. Please reopen this bug if you are still having this problem. However, the NumberFormatException in messages.log showed that my scanner wasn't catching badly formatted integer literals. I updated the scanner to use the same logic that javac's parser does for checking integer literals, so this exception won't be thrown any more.
I still have this problem with NB 20041012. If it happens, I also have no code folding available in that source. It just happened, after compiling this single source. I think, this is related to issue #50146.
I can easily reproduce it now: Compile the source: Combo box empty, no code folding. Change/save the source: Everything OK again. And so on... Cause IMHO: Parser parses the newer file: .java or .class. Class files are in the same folder as the source files here.
Another thing: This causes problems with the debugger, too. Breakpoints must be set again after compiling, changes, saving the source. Otherwise it won't stop.
Yes, this time it is very likely related to issue 50146.
Hopefuly fixed by fixing issue 50146. I was not able to reproduce this so I am not sure. So, please reopen if you get this even with the build containing fix for 50146.
The editor combobox is no longer supported. Marking as verified.
Reorganization of java component