Bug 186446 - Clean and build produces compile-time errors
Clean and build produces compile-time errors
Status: NEW
Product: java
Classification: Unclassified
Component: Compiler
6.x
PC Windows XP
: P3 (vote)
: TBD
Assigned To: Dusan Balek
issues@java
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-20 15:54 UTC by carlwebman
Modified: 2010-05-20 15:54 UTC (History)
0 users

See Also:
Issue Type: TASK
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo