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 165458 - javadoc window can not display some APIs
Summary: javadoc window can not display some APIs
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-19 04:19 UTC by Masaki Katakai
Modified: 2011-01-19 06:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (104.41 KB, image/png)
2009-05-19 04:20 UTC, Masaki Katakai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2009-05-19 04:19:10 UTC
Most cases are working fine but some e.g. actionPerformed() are not working.

1. Start NetBeans
2. Add JDK javadoc (download from java.sun.com) as Javadoc for Java Platform
3. Edit the following codes

        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

4. Click on actionPerformed().

If src.zip is specified on Java Platform, it displays the javadoc but
it looks the contest came from src.zip.

If src.zip is not specified (removed it), it displayed the following error.

public void actionPerformed(ActionEvent evt)
Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in
the Java Platform Manager or the Library Manager.

It means localized javadoc will not be displayed, English contents from src.zip
will be displayed.

This behavior is the same on 6.5. So I filed as P3.
Comment 1 Masaki Katakai 2009-05-19 04:20:11 UTC
Created attachment 82362 [details]
screenshot
Comment 2 Max Sauer 2009-05-19 15:26:13 UTC
What does mean

4. Click on actionPerformed() ?

You mean Ctrl-click? Or invoking CC? Thanks.
Comment 3 Masaki Katakai 2009-05-19 15:55:02 UTC
Sorry for the unclear explanation.

Move cursor to "actionPerformed" on editor like screenshot.
Comment 4 ruinous 2009-05-19 17:01:50 UTC
I am an original reporter of this problem. I'd like to tell you additional problem about event methods.

When I clicked a event method (for example, "mouseClicked"), Javadoc window doesn't shows Japanese (localized)
description, but English description.
(for example, "Invoked when the mouse button has been clicked (pressed and released) on a component.")

When I removed src.zip, Javadoc window only shows the method name.
Even following error message is not shown.
"Javadoc not found. Either Javadoc documentation for this item does not exist or you have not added specified Javadoc in
the Java Platform Manager or the Library Manager."

This behavior happens on 6.5 and 6.7.

...I'm not so good at English, so please excuse me if there are some wrong expressions.
Comment 5 Dusan Balek 2011-01-18 10:56:55 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/fab6aac01bd3
Comment 6 Quality Engineering 2011-01-19 06:34:43 UTC
Integrated into 'main-golden', will be available in build *201101190000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/fab6aac01bd3
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #165458: javadoc window can not display some APIs - fixed.