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 40117 - [JDK1.5.0] Javadoc missing for core libs
Summary: [JDK1.5.0] Javadoc missing for core libs
Status: CLOSED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords: JDK_SPECIFIC
: 44315 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-15 18:54 UTC by _ gtzabari
Modified: 2011-06-09 09:51 UTC (History)
2 users (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 _ gtzabari 2004-02-15 18:54:48 UTC
dev build 200402091900

   When I hit CTRL-SPACE on "new
HashMap().keySet()." I expect to get Javadoc on
java.util.Set, which I do. However, when I try
getting Javadoc for java.util.Set.add(Object o) it
says the Javadoc is missing. I even have src.zip
mounted to be used as a Javadoc source, so what gives?
Comment 1 Marian Mirilovic 2004-02-15 22:06:15 UTC
I don't know where this issue belogs to, so please feel free to
reassigne ....
Comment 2 _ gtzabari 2004-02-24 15:13:52 UTC
Wouldn't this issue be a P2 since it is a regression and a core
functionality is broken?
Comment 3 Jan Pokorsky 2004-03-03 15:00:34 UTC
The code completion is maintained by the editor module.
Comment 4 Martin Roskanin 2004-03-04 10:24:11 UTC
Gili, please give me the exact phrase for getting the completion 
javadoc, because
java.util.Set.add(Object o) is incorrect. The method add(Object o) is
not static.
If I try:
new java.util.Set().ad|d(Object o);  | is caret place
I get correct javadoc info.
Comment 5 Martin Roskanin 2004-03-04 10:48:27 UTC
Aha, I have noticed that you are using JDK1.5 and probably you have
mounted the sources of jdk15...
If so, this will be more general problem of java parser that is not
capable to parse jdk15. If you will mount jdk14 sources completion
javadoc should work even if you are running NB on jdk15. Or you can
mount html javadoc of jdk15 via javadoc manager, then completion
javadoc will retrieve info from html and not from sources.

Comment 6 _ gtzabari 2004-03-04 11:38:22 UTC
Martin,

- "new HashMap().<code complete>" reproduces the problem.
- Yes, I have the JDK 1.5 sources mounted. How does one mount Javadoc
from HTML?

   So either way, we are guessing the problem is parsing the JDK 1.5
sources. Ok, please set the target milestone accordingly.
Comment 7 Miloslav Metelka 2004-03-08 17:09:13 UTC
Setting promoD as target milestone. Reassigning to Martin R.
Comment 8 Martin Roskanin 2004-06-07 16:07:39 UTC
After merging meta_stavbicka branch (MDR) to maintrunk, you can mount
javadoc as follows:
1. right click on the project where you want to mount javadoc
2. choose properties from popup
3. click on Edit... of Java Platform
4. select javadoc tab
5. Add zip/folder (I use to extract javadoc archive and mount docs/api
folder)

completion popup javadoc will retrieve the info from mounted html
javadocs if no javadoc is found in sources.

As for HashSet javadocs:
 followin example should popup the javadoc for HashSet.add

        HashSet hs = new HashSet();
        hs.add|

But because of jdk15 syntax it seems there are some parser problems.
Now the method looks:
    public boolean add(E o) {...}

I will look at this.

Comment 9 Martin Roskanin 2004-06-08 14:23:41 UTC
*** Issue 44315 has been marked as a duplicate of this issue. ***
Comment 10 Dusan Balek 2004-07-15 15:21:37 UTC
Fixed in [maintrunk].

Checking in JMIUtils.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JMIUtils.java,v  <--
 JMIUtils.java
new revision: 1.26; previous revision: 1.25
done
Checking in NbCompletionJavaDoc.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbCompletionJavaDoc.java,v
 <--  NbCompletionJavaDoc.java
new revision: 1.40; previous revision: 1.39
done
Checking in NbJMICompletionJavaDoc.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJMICompletionJavaDoc.java,v
 <--  NbJMICompletionJavaDoc.java
new revision: 1.8; previous revision: 1.7
done
Comment 11 _ gtzabari 2004-07-16 06:26:37 UTC
   Using dev build 200407151800, JDK 5.0 beta 3, auto-complete is
still missing Javadocs. Isn't this supposed to be fixed in this build?
Comment 12 Marian Mirilovic 2011-06-09 09:51:15 UTC
v/c