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 111679 - Javadoc not found when non-default JDK used
Summary: Javadoc not found when non-default JDK used
Status: RESOLVED DUPLICATE of bug 111554
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-01 20:57 UTC by tkellerer
Modified: 2007-08-06 09:49 UTC (History)
0 users

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 tkellerer 2007-08-01 20:57:43 UTC
With the current dev-build (20070727) Javadoc help (Alt-F1) is not displayed if the project uses a different JDK than
the one NB runs on. 

Example:

I run NB with JDK 1.6 (installed in c:\Programme\Java\jdk16)
I have defined a Java platform jdk15 (installed in c:\Programme\Java\jdk15) which is assigned to the current project.
Alt-F1 (Ctrl-Space) will not show the JavaDocs for e.g. the List interface (the Ctrl-Space popup shows a "Javadoc" not
found). When I assign the default Java platform to my project, Alt-F1 and Ctrl-Space immediately start working. When I
assign jdk15 again, they stop working. 

Note that Shift-F1 is always regardless which JDK I have assigned to my project
Comment 1 Jesse Glick 2007-08-02 19:25:27 UTC
Is this not a dupe of issue #111554? Working fine for me in 070801.
Comment 2 tkellerer 2007-08-02 20:34:55 UTC
Not sure if it is a dupe, as for me "Search Javadoc" was always working. 
But you are right, it is working now with 20070801
Comment 3 tkellerer 2007-08-03 07:53:57 UTC
Hmm. Does not seem to work reliably (i.e. for all classes)

Take the following line:

String p = URLDecoder.decode(url.getFile(), "UTF-8");

if the cursor is placed inside URLDecoder, Alt-F1 only shows the help if the default JDK is used. When I switch the
project to JDK 1.5 Alt-F1 does not show anything (not even an error message). Shift-F1 correctly finds the class.

Whereas the help for getFile() will be displayed even when using the non-default JDK.
Comment 4 Jan Pokorsky 2007-08-06 09:49:50 UTC
Yes, it is a duplicate. Especially if Shift+F1 was working. I tried Alt/Shift+F1 on URLDecoder code sample and it works
with the latest build 20070806 whatever JDK I choose (Linux, JDK 1.5/1.6).

*** This issue has been marked as a duplicate of 111554 ***