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.
[200205030100], last jdk1.4.0 How to reproduce: - mount jar or directory with classes (without sources) - mount sources for these clases - type in editor name of class -> no javadoc completion appeared Code completion works. But Javadoc completion don't work. Workaround : Change order of classes in explorer. Sources move before classes.
Problem is described in the following example: I am searching the javadoc for the method ... 1. JavaDoc.Method (jdMethod) is not null in both cases (classes before sources or vice-versa) if the classes are before the sources : 2.jdMethod.getText() is not null, but the size of the text is 0 if the sources are before the classes : 2.jdMethod.getText() returns the correct text (if it exists of course) org.openide.src.JavaDoc should obtain the requested info if it is available
That depends - how did you obtain the parent MethodElement's parent (ClassElement) ? Did you do that using ClassElement.forName() ?
Yes Svata I am using this one: ce = ClassElement.forName(clsFullName); Is there something wrong? Should I use something else to get proper ClassElement ?
OK, then it seems as a bug. The find algorithm in ClassElement should prefer source objects to classes.
*** Issue 24988 has been marked as a duplicate of this issue. ***
Svata, just another case. It looks quite seriously, because xerces are mounted by default as a library. Is there any workaround for that as for xerces (without deleting library of course) I tried to move the xerces sources FS UP before library and it doesn't solve the problem :-(
The ClassElement finder applied to restrictive policy so it did not admit sources mounted as described here. /cvs/java/src/org/netbeans/modules/java/ClassElementFinder.java,v <-- ClassElementFinder.java new revision: 1.5; previous revision: 1.4
Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.
Reorganization of java component