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 268365 - After removing main() from a class, NetBeans IDE does not recognize that it can no longer be the startup class
Summary: After removing main() from a class, NetBeans IDE does not recognize that it c...
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: UI (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P4 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-05 19:14 UTC by ciscofu
Modified: 2016-10-05 19:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ciscofu 2016-10-05 19:14:53 UTC
After removing main() from a class, such as an auto-generated JFrame class, the IDE continues to show the class as being a candidate class for program startup (green triangle in the Project pane's class file). Exiting and restarting NetBeans causes the class to be correctly recognized as not being a valid startup class.
Comment 1 ciscofu 2016-10-05 19:17:19 UTC
Does not happen every time. Will attempt to see if it was a strange occurrence that cleared after restart or if there is a pattern and resubmit.