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 131126 - bogus import errors from compile time projects
Summary: bogus import errors from compile time projects
Status: RESOLVED DUPLICATE of bug 104665
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 03:56 UTC by olhemann
Modified: 2008-03-26 22:29 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 olhemann 2008-03-26 03:56:14 UTC
I have two Projects A and B. A depends on B (added as a compile time library). Sometimes (almost randomly) a java file
in A shows some compilation error (an import error for one or more files from B) but this is really bogus because:
1) program still builds with no errors and run correctly
2) other java files in A with same import statement show no compilation error.


Clean and Rebuild on A, B or both does no help. The only thing that seems to work is to manually edit files from B (the
ones that cause the import error) and add a space or whatever. When the file is saved, the import error eventually
disappears from A. This is incredibly frustrating!

Product Version: NetBeans IDE 6.1 Beta (Build 200803050202)
Java: 1.5.0_13; Java HotSpot(TM) Client VM 1.5.0_13-119
System: Mac OS X version 10.5.2 running on i386; MacRoman; en_US (nb)
Comment 1 Dusan Balek 2008-03-26 09:22:18 UTC
Have you done any external changes to the affected sources (like cvs/svn update, etc.)?
Comment 2 Jan Lahoda 2008-03-26 13:38:45 UTC
Current trunk build should be able to recover from such a situation - see desc43 in issue #104665.
Comment 3 olhemann 2008-03-26 13:42:19 UTC
No, sometimes it just appears when you restart Netbeans, sometimes when you bring a file for viewing. 
Comment 4 olhemann 2008-03-26 22:29:13 UTC
Thanks it is indeed the same as issue #104665. 

*** This issue has been marked as a duplicate of 104665 ***