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.

Bug 49624 - Editor combo box is empty after compiling a class
Summary: Editor combo box is empty after compiling a class
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on: 50146
Blocks:
  Show dependency tree
 
Reported: 2004-09-28 08:42 UTC by tboerkel
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (2.36 KB, text/plain)
2004-09-28 08:43 UTC, tboerkel
Details
Sample source where it fails often (220.61 KB, text/plain)
2004-09-28 14:54 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2004-09-28 08:42:56 UTC
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.
Comment 1 tboerkel 2004-09-28 08:43:21 UTC
Created attachment 17900 [details]
messages.log
Comment 2 tboerkel 2004-09-28 09:09:59 UTC
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.
Comment 3 tboerkel 2004-09-28 14:54:07 UTC
Created attachment 17902 [details]
Sample source where it fails often
Comment 4 Martin Matula 2004-09-29 14:59:45 UTC
Tom, could you please look at the exception? It seems to come from javac.
Comment 5 _ tball 2004-10-01 20:35:19 UTC
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.
Comment 6 tboerkel 2004-10-15 13:59:37 UTC
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.
Comment 7 tboerkel 2004-10-15 14:11:09 UTC
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.
Comment 8 tboerkel 2004-10-15 14:13:37 UTC
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.
Comment 9 Martin Matula 2004-10-15 14:15:14 UTC
Yes, this time it is very likely related to issue 50146.
Comment 10 Martin Matula 2004-10-15 15:53:28 UTC
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.
Comment 11 Jiri Prox 2005-07-12 12:17:24 UTC
The editor combobox is no longer supported. Marking as verified.
Comment 12 Quality Engineering 2007-09-20 09:56:47 UTC
Reorganization of java component