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 225569 - Error On Class Declaration May Not Go Away
Summary: Error On Class Declaration May Not Go Away
Status: RESOLVED DUPLICATE of bug 199357
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-31 06:19 UTC by MackSix
Modified: 2013-02-08 11:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
project for reproduction of bug (16.85 KB, application/zip)
2013-01-31 06:19 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-01-31 06:19:34 UTC
Created attachment 130863 [details]
project for reproduction of bug

1. Open attached project in NetBeans.
2. The code was pasted into JavaApplication2.java file and the package declaration and Class name has warnings.
3. Click on error lightbulb badge on package declaration and choose to change the declaration to the correct package name "javaapplication2".
4. Now copy the name of the Class "TopLevelTransferHandlerDemo" to change the file name.
5. Instead of chaning the filename, change the package name to "TopLevelTransferHandlerDemo" instead to simulate a mistake.
6. Whoops! We made a mistake and renamed the package instead of the file name. Click Undo to change the package name back.
7. Now if you put focus on the file name an use Ctrl+R, you can't rename the file, only the pakage, but you can click two times on the filename and rename it directly in the Project Window. Change the file name to "TopLevelTransferHandlerDemo" to match the Class name.
8. Notice the red error badges on the project in the Project Window goes away, but the wavy red underline and error badge in the editor does not go away.

Expected: The error badge and wavy red underline goes away on the TopLevelTransferHandlerDemo Class declaration.

Workaround: Close the file and reopen it.

Product Version: NetBeans IDE 7.3 RC1 (Build 201301240957)
Java: 1.7.0_11; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_11-b21
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Jan Lahoda 2013-02-08 11:48:05 UTC
From the description, it seems like a duplicate of bug #199357.

*** This bug has been marked as a duplicate of bug 199357 ***