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 90787 - Javadoc (JDK API) not available
Summary: Javadoc (JDK API) not available
Status: RESOLVED FIXED
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: 104087 104154
Blocks:
  Show dependency tree
 
Reported: 2006-12-07 18:00 UTC by tkellerer
Modified: 2007-08-01 16:07 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 2006-12-07 18:00:10 UTC
In the current dev builds, it is not possible to display the Javadoc for the
current identifier (Alt-F1) nor is the Javadoc Index Search (Shift-F1) available.

The javadoc popup during code-completion is working though (although the code
completion is not displaying variable names, but that is probably a different
problem)
Comment 1 Jan Pokorsky 2006-12-07 23:12:32 UTC
Yes, the javadoc module has been temporarily disabled since it has to be adapted
to the new java language infrastructure.
Comment 2 Jan Pokorsky 2006-12-11 20:44:52 UTC
Fixed in the main trunk.
Comment 3 tkellerer 2006-12-14 19:30:06 UTC
Alt-F1 (when the cursor is located "in" a JDK class) is still not available.

The context menu, when right-clicking on a class/method does not contain a "Show
Javadoc" as well. 

I tried this with the dev build from Dec, 13th
Comment 4 tkellerer 2007-04-02 22:34:00 UTC
Alt-F1 opening the external browser is still not working, only Shift-F1 which
uses the internal browser
Comment 5 pdponce 2007-05-07 03:06:40 UTC
I have just download milestone 9 and still no sign of javadoc. When will it
become available again?
Comment 6 Jan Pokorsky 2007-05-14 16:04:08 UTC
Show Javadoc action (Alt-F1) works again too.

/cvs/java/editor/src/org/netbeans/modules/editor/java/GoToSupport.java
new revision: 1.12; previous revision: 1.11
/cvs/java/editor/src/org/netbeans/modules/editor/java/JavaKit.java
new revision: 1.39; previous revision: 1.38

pdponce: could you be more specific what javadoc features are you missing?
Comment 7 tkellerer 2007-05-15 22:17:35 UTC
Although the external browser now opens, it does not jump to the method the
cursor was located on. e.g. put your cursor on something like
mystring.toUpperCase() and hit Alt-F1 (I mapped Alt-F1 to "Goto Javadoc") then
the Javadoc for the String class is shown, but the browser is not scrolled to
the toUpperCase() method (as it was before all the refactoring)
Comment 8 Jan Pokorsky 2007-05-16 10:47:10 UTC
It looks that there is a bug to open URL contining '(', ')' chars. What platform
and browser did you run the IDE?

The Show Javadoc action is mapped to Alt-F1 by default. Why 
Comment 9 tkellerer 2007-05-16 11:08:52 UTC
I am using WindowsXP & Firefox 2.0

When I installed the daily build where this was working again, the shortcut was
not mapped, so I did it automatically. But I have seen problems when using daily
builds with the UserDir several times, which can usually be fixed by deleting
the userdir. Maybe that's the issue with the missing shortcut. 

I have seen the wrong URL beeing sent to the browser before (in 5.5, not sure if
there was an issue for that). Basically characters like spaces or commas need to
be URLEncoded before sending them to the browser.

But I also tried this with methods that do not have parameters, which means that
no comma would be present (e.g. something like AbstractCollection.html#iterator())

Comment 10 Jan Pokorsky 2007-05-16 17:05:00 UTC
Now it should work even for methods. There is an editor bug so you have to
switch between editors or applications to get editor features working properly.
This could cause your shortcut problems. I also filed issue #104087 since
firefox on unix has problems to display method javadocs.

/cvs/java/source/src/org/netbeans/api/java/source/SourceUtils.java
new revision: 1.32; previous revision: 1.31
Comment 11 tkellerer 2007-05-26 11:37:56 UTC
For your information: 

On my system it only works reliably, if I switch from <Default System Browser>
to Firefox in Tools -> Options -> General.

Windows XP, SP2
Firefox 2.0.0.3
Default browser is Firefox

If I leave the "<Default System Browser>" most of the time Alt-F1 does nothing. 
Comment 12 tkellerer 2007-07-31 21:55:07 UTC
With the current dev-build it stopped working again, although this does not seem to relate to the external browser, but
to the fact that the Javadocs are not found if the current project does not use the JDK 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 13 Jan Pokorsky 2007-08-01 16:07:28 UTC
Please file it as a new issue. It has no connection to the previous problem.