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.
[ BUILD # : 201011152355 ] [ JDK VERSION : 1.6.19 ] when editing a java class belonging to a jme project, using the code completion reports "javadoc not found" for j2me API.
Created attachment 103350 [details] screenshot of IDE
Created attachment 103351 [details] screenshot of java platform manager screenshot of java platform manager showing that javadoc looks configured correctly.
the same defect is still present in build 201012150001
Created attachment 105095 [details] Exception catched This is an exception thrown during the case.
Created attachment 105096 [details] Javadoc for the test case two Javadoc packages that can be used as a test case
When you specify Javadoc roots from attached zip in order cdc-1.1 and then midp-2.0 - lookup for javax.microedition.midlet.MIDlet Javadoc fails with attached exception. When the midp-2.0 root is defined fist - it works. Increasing priority as it breaks important feature. Reassigning to java.source as org.netbeans.modules.java.source.JavadocHelper seems to be trying to open a Html file from wrong Javadoc root.
The root cause is the org.netbeans.modules.java.source.JavadocHelper.knownGoodRoots cache: whenever any javadoc root is known to contain javadoc for any class, the roots that follow it in the JavadocQuery's result are *never* tried, even if the previous root does not contain the javadoc for the currently queried class. To reproduce without J2ME: 1. download the attached project, unpack, open 2. open "test.Test", place caret at Lib1 and invoke code completion (and its javadoc popup). 3. test the javadoc for Lib2: does not work 4. go to project properties, edit the lib library, swap the javadoc roots 5. force full reparse of the current file (close&reopen, edit outside method, etc.), so that the other caches are cleared 6. look for Lib2 javadoc: works; Lib1 does not.
Created attachment 105612 [details] Test case.
Can assign to me if you like; looks like it should be straightforward to fix.
core-main #acfa71136988
Integrated into 'main-golden', will be available in build *201102180501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/acfa71136988 User: Jesse Glick <jglick@netbeans.org> Log: #192505: javadoc not found in jme projects Activate knownGoodRoots cache only for remote Javadoc, and only when there is just one root URL specified.