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 186446 - Clean and build produces compile-time errors
Summary: Clean and build produces compile-time errors
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-20 15:54 UTC by carlwebman
Modified: 2010-05-20 15:54 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Screen shot of IDE after failed clean build. (76.80 KB, image/gif)
2010-05-20 15:54 UTC, carlwebman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description carlwebman 2010-05-20 15:54:01 UTC
Created attachment 99263 [details]
Screen shot of IDE after failed clean build.

I am creating an application which uses 4 libraries, created also by me.  All 5 projects are open in the IDE.  I started experiencing problems doing a clean build of my application after renaming one of the methods in a library.  I had called it "recursiveDeletee" (with two "e"s).  When I changed it to "recursiveDelete" (with one "e") and then made the appropriate change in my application (I even remembered to rebuild the library using a clean build), my application could no longer be clean built due to this error...

C:\...\FileSlicer\src\com\avajavoli\fileslicer\FileAction.java:37: cannot find symbol
symbol  : method recursiveDelete(java.io.File,boolean)
location: class com.avajavoli.common.util.FileUtil

However... the IDE reports no errors (no red circles in the project explorer) and the application runs perfectly fine from the IDE.  The PROBLEM is that the IDE or some supporting component like ANT, or some cache somewhere, or SOMETHING is expecting the library to contain a method named "recursiveDeletee()" and when it doesn't find it it causes the clean build to fail.

WORKAROUND

There are two ways to fix this.  First, rename the method to the incorrect spelling (not my preferred method).  Second...

1) Uninstall the IDE
2) Uninstall the JDK
3) Delete the ".netbeans" and ".nbi" directories
4) Move the project folders
5) Reinstall everything
6) Create all the projects from scratch
7) Move the "src" folders from the original project directories to the new ones.
8) Clean build everything