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.
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?
I don't know where this issue belogs to, so please feel free to reassigne ....
Wouldn't this issue be a P2 since it is a regression and a core functionality is broken?
The code completion is maintained by the editor module.
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.
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.
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.
Setting promoD as target milestone. Reassigning to Martin R.
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.
*** Issue 44315 has been marked as a duplicate of this issue. ***
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
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?
v/c