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.
Summary: | OK button is randomly disabled in set main class dialog | ||
---|---|---|---|
Product: | java | Reporter: | Roman Strobl <rstrobl> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jchalupa |
Priority: | P3 | Keywords: | RANDOM |
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Project where it fails
Screenshot |
Description
Roman Strobl
2005-02-22 13:14:29 UTC
Created attachment 20452 [details]
Project where it fails
Roman, you didn't try to set the main class with "background scanning" turned on, did you? The bug is independent on the background scanning property setting. Today it was harder for me to reproduce it (seems as some random race condition to me...). Today it failed in 1 case of cca. 50 while yesterday it failed in 1 case of cca. 5. I attach screenshot of the dialog. A workaround is to close the dialog and try again, the probability that OK button won't be disabled next time is high. Created attachment 20466 [details]
Screenshot
This is a threading issue, the listeners are registerd int the AWT Thread after the async job searching all main classes is started and the async job (non AWT Thread) calls back into AWT. Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/MainClassChooser.java,v <-- MainClassChooser.java new revision: 1.27; previous revision: 1.26 done Verified on 20050311-1239. |