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 23106 - javadoc cannot retrieve info if classes are mounted before sources in explorer
Summary: javadoc cannot retrieve info if classes are mounted before sources in explorer
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
: 24988 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-05-03 14:16 UTC by pfelenda
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

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 pfelenda 2002-05-03 14:16:29 UTC
[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.
Comment 1 Martin Roskanin 2002-05-16 15:12:33 UTC
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



Comment 2 Svata Dedic 2002-05-17 08:18:26 UTC
That depends - how did you obtain the parent MethodElement's parent
(ClassElement) ? Did you do that using ClassElement.forName() ?
Comment 3 Martin Roskanin 2002-05-17 08:29:22 UTC
Yes Svata I am using this one:
ce = ClassElement.forName(clsFullName);
Is there something wrong? Should I use something else to get proper ClassElement ?

Comment 4 Svata Dedic 2002-05-17 08:33:46 UTC
OK, then it seems as a bug. The find algorithm in ClassElement should
prefer source objects to classes.
Comment 5 Martin Roskanin 2002-06-20 16:30:31 UTC
*** Issue 24988 has been marked as a duplicate of this issue. ***
Comment 6 Martin Roskanin 2002-06-20 16:35:46 UTC
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 :-(

Comment 7 Svata Dedic 2002-07-08 16:17:27 UTC
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
Comment 8 pfelenda 2002-10-14 15:43:18 UTC
Verified
Comment 9 Quality Engineering 2003-07-01 16:27:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 10 Quality Engineering 2007-09-20 11:50:43 UTC
Reorganization of java component