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 165251 - javac API source errors
Summary: javac API source errors
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 10:26 UTC by fommil
Modified: 2016-07-07 07:18 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 fommil 2009-05-15 10:26:54 UTC
When editing the NetBeans source code (e.g. java.source) from main-golden on 6.5, 6.7 beta or a recent dev... there are a multitude of compile errors in the 
editor window. The errors are always related to the javac (e.g. Compiler Tree and related) APIs.

This bug makes it very difficult to perform bugfixes or implement features for NetBeans when using the Apple platform.

@see issue 160625
Comment 1 Jan Lahoda 2009-05-20 18:37:18 UTC
Do you have nb-javac sources checked out? If yes, then this is a know problem with external source roots. There is an
artificial SourceForBinaryQuery, that translates the javac-api-nb-7.0-b07.jar and javac-impl-nb-7.0-b07.jar to
nb-javac/src/share/classes/. This source root is an external source root of project: nb-javac/make/netbeans/nb-javac.
But, what happens is that noone provides classpath for the source root (although the project is loaded, and so the
external source root should have owner) and the indexing engine will skip it. Precise details on why the owner is not
found are still unknown.

A user-level workaround is to manually open the nb-javac project, clear caches (var/cache/index) and restart the IDE. As
the external source roots mapping is persistent since NB6.5, it should be safe to close the nb-javac project after it
was opened at least once.
Comment 2 fommil 2009-05-21 11:18:57 UTC
I'm only checked out for main-golden and contrib... no javac here. Workarounds very welcome!
Comment 3 Rastislav Komara 2009-05-21 11:43:03 UTC
hg http://hg.netbeans.org/nb-javac
Comment 4 fommil 2009-05-21 13:54:32 UTC
@moonko you mean I *should* pull down nb-javac to fix this? Why is that necessary
Comment 5 Jan Lahoda 2009-08-20 09:58:00 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 6 Martin Balin 2016-07-07 07:18:47 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss