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 267244 - Main class icon badge disappears if source file renamed with hint
Summary: Main class icon badge disappears if source file renamed with hint
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-21 23:13 UTC by MackSix
Modified: 2016-07-21 23:13 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 MackSix 2016-07-21 23:13:28 UTC
1. Open up Java source file with a main() method.
2. Rename the class.
3. Use Hint to rename the Java file to match new class name. Notice that the "Contains main glass" badge (green arrow) disappears on the file's icon in the Project window.

Expected: Green arrow still shows on file's icon.

Workaround: Restart NetBeans.


Product Version: NetBeans IDE Dev (Build 201607140002)
Java: 1.8.0_92; Java HotSpot(TM) 64-Bit Server VM 25.92-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_92-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; en_US (nb)