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 226419 - "Needs to be compiled' badge may not go away on compiled java file.
Summary: "Needs to be compiled' badge may not go away on compiled java file.
Status: RESOLVED DUPLICATE of bug 226091
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-02-20 19:18 UTC by MackSix
Modified: 2013-02-21 08:16 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project to use for reproduction. (14.41 KB, application/zip)
2013-02-20 19:18 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-02-20 19:18:40 UTC
Created attachment 131633 [details]
Project to use for reproduction.

I noticed this before, but finally found away to reproduce it. This also happens on a java file in a Groovy project.

1. Import attached project into NetBeans and make sure "Compile on save" is disabled.
2. Run project and it should run ok showing fib: and duration.
3. Run cmd.exe and navigate to the project's dist folder and run the jar file (java -jar JavaApplication11) and it should run ok.
4. Edit JavaApplication11.java and remove the comment marks on line 19, 24 and 27.
5. Clean & Build project and it will fail because NetBeans can't delete the "dist" directory becaues Windows has a lock on it from cmd.exe.
6. move up one directory (cd ..) in cmd so as to unlock the "dist" directory.
7. Now Clean & Build the project.
8. Notice the "needs to be compiled" badge is showing for JavaApplication11.java, although it was compiled.

Expected: The "needs to be compiled" badge goes away.

Workaround: Restart NetBeans.

This works in NetBeans 7.2.1. Regression.

Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

Bug is also in:

Product Version: NetBeans IDE Dev (Build 201302192300)
Java: 1.7.0_13; Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_13-b20
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Tomas Zezula 2013-02-21 08:16:48 UTC

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