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.
Steps to reproduce: 1. Open source file from project which depends on another project (e.g. with imported ErrorManager), 2. clean 'Open API' project, 3. after error annotations are refreshed, you will get error annotation 'cannot resolve symbol'. We experienced this problem in our refactoring build, but we thought that it is the same in trunk build. We get empty array from SourceForBinaryQuery.findSourceRoot(entry) where entry represents original classpath element which was cleaned.
Strange, the current code should not care if the JAR exists or not. Perhaps you are missing some entries in nbbuild/templates/modules.xml? That would cause this problem.
We have tried this even with openide (cleaned openide module) and we get the same result - source for openide was not returned.
Seems to be fixed by: User: tzezula Date: 04/05/28 10:41:23 Modified: api/src/org/netbeans/api/java/queries SourceForBinaryQuery.java Log: Fixing the case when the SPI implementor returns an empty array. Revision Changes Path 1.5 +1 -1 java/api/src/org/netbeans/api/java/queries/SourceForBinaryQuery.java http://java.netbeans.org/source/browse/java/api/src/org/netbeans/api/java/queries/SourceForBinaryQuery.java.diff?r1=1.4&r2=1.5
verified