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 172851 - Missing Javadoc for Java EE APIs in Code Completion
Summary: Missing Javadoc for Java EE APIs in Code Completion
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@javaee
URL:
Keywords:
: 172515 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-23 10:38 UTC by Milan Kuchtiak
Modified: 2010-02-02 05:27 UTC (History)
3 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 Milan Kuchtiak 2009-09-23 10:38:19 UTC
I don't know whose responsibility is this but there is missing javadoc in code completion for Java EE 6/5 APIs.

To reproduce:
- create Java EE 6 web project
- select GlassFish V3 as target server
- ceate anything: servlet, web service, session bean
- the CC works but javadoc is missing

Note: javadoc in CC is working when Tomcat or GlassFish V2 is selected.
Comment 1 Petr Hejl 2009-09-23 13:14:06 UTC
Seems like GFv3 is adding a library "Java-EE-GlassFish-v3". Query for javadoc hits this library, but the library does
not have any associated javadoc. At least this what I saw in debugger.
Comment 2 Petr Jiricka 2009-09-23 14:03:54 UTC
I see this issue also when I don't have v3 registered, and create an app against Tomcat.
Comment 3 Milan Kuchtiak 2009-09-23 14:09:16 UTC
I have no problem with Tomcat, at least CC with javadoc works for javax.servlet API.
Comment 4 Milan Kuchtiak 2009-09-23 15:00:51 UTC
When you look into NB_USER_DIR/config/org-netbeans-api-project-libraries/Libraries/Java-EE-GlassFish-v3.xml
there is no javadoc specified
Comment 5 Vince Kraemer 2009-09-23 16:48:16 UTC
Hmm.  ok. this is easy to fix.

I am a bit surprised that the javadoc search would stop at the first hit... null or not... which is what this implies.

oh well.
Comment 6 Quality Engineering 2009-09-25 09:08:47 UTC
Integrated into 'main-golden', will be available in build *200909241442* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b8682e1c1575
User: vince kraemer <vkraemer@netbeans.org>
Log: #172851 and #172866: library issues
Comment 7 Vince Kraemer 2009-09-25 15:17:05 UTC
in the nightly
Comment 8 Petr Jiricka 2009-10-02 16:10:07 UTC
*** Issue 172515 has been marked as a duplicate of this issue. ***
Comment 9 jpleed3 2009-12-01 14:28:00 UTC
I tried verifying this in RC1, but it still wasn't working for me. 

To reproduce what I'm trying to do:
    HttpSession session = null;
    session.
After the '.' wait a second and autocomplete will show the methods available. Click on one of the ones that pertains to HttpSession (not just Object) and the Javadoc should be shown. I get "Javadoc not found".

I checked the Java-EE-GlassFish-v3.xml in my .netbeas/6.8rc1/... folder and it had this entry:
    <volume>
        <type>javadoc</type>
        <resource>jar:file:/C:/Program%20Files/NetBeans%20Dev%20200911220201/enterprise6/docs/javaee6-doc-api.zip!/</resource>
    </volume>

At the time I first ran RC1, I did have that build installed, but I had deleted everything out of my .netbeans folder first. 

I tried changing the entry to jar:file:/C:/Program%20Files/NetBeans%206.8%20RC1/enterprise6/docs/javaee6-doc-api.zip!/ with no effect.

Next I uninstalled every build except for RC1, deleted everything out of my .netbeans folder and started NB again; the entry changed back to jar:file:/C:/Program%20Files/NetBeans%20Dev%20200911220201/enterprise6/docs/javaee6-doc-api.zip!/.

Finally I deleted the .netbeans folder completely, uninstalled every build, searched the registry for "netbeans" and reinstalled RC1. This time I didn't import my options in. The entry is now 
        <resource>jar:file:/C:/Program%20Files/NetBeans%206.8%20RC1/enterprise6/docs/javaee6-doc-api.zip!/</resource>, which should be correct, and the doc file is present.

It still doesn't work. Messages.log doesn't show much except a warning: 
WARNING [org.openide.text.CloneableEditorSupport]: org.netbeans.modules.xml.text.TextEditorSupport should override asynchronousOpen(). See http://bits.netbeans.org/dev/javadoc/org-openide-text/apichanges.html#CloneableEditorSupport.asynchronousOpen
Comment 10 Petr Hejl 2009-12-02 09:13:55 UTC
Perhaps there is something wrong with your project classpath. Can you share the project?

Can you test with clean userdir & new project?
Comment 11 Vince Kraemer 2009-12-02 14:17:32 UTC
I just pulled from release68 and did a build.

I started the ide with a clean userdir

I registered v3 b74.

I created a java EE 6 web app that targets v3.

I did the test described in https://netbeans.org/bugzilla/show_bug.cgi?id=172851#c9 and could not reproduce the issue.

I am on Solaris though... so that might contribute to my success.
Comment 12 davisn 2009-12-02 14:35:48 UTC
Try with 12/02 build and cound't reproduce the problem/ 
Created a Servlet -> add  HttpSession and was able view the java Doc for any methods I select.
Comment 13 Vince Kraemer 2009-12-02 22:08:47 UTC
I just did some testing on Windows Vista with 6.8 rc1... and I am still not able to replicate the issue.

Please update the issue with the info that phejl requested.
Comment 14 Vince Kraemer 2009-12-04 14:32:30 UTC
pushing up a level to see if other folks can reproduce this
Comment 15 pacinpm 2010-01-22 07:17:06 UTC
I can confirm this issue on Polish version on Windows XP and NetBeans 6.8. Editor can't find JavaDoc for some libraries (javax tree of libs for example).

I am new to Java world and I am not sure how could I help to find this bug.
Comment 16 Petr Jiricka 2010-02-02 05:27:59 UTC
Need reliable steps to reproduce, currently can not reproduce - marking as INCOMPLETE. If anyone can provide reliable steps, please attach them here and reopen. Thanks.