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 206278 - "Attach Javadoc..." hyperlink not working
Summary: "Attach Javadoc..." hyperlink not working
Status: RESOLVED DUPLICATE of bug 206779
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-12-12 15:27 UTC by Jesse Glick
Modified: 2012-02-16 09:41 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 Jesse Glick 2011-12-12 15:27:59 UTC
Not sure if this is true in NB 7.1, but at least in 7.2 dev builds when the "Attach Javadoc..." hyperlink appears in a popup Javadoc window and I click it, the popup is closed but nothing else happens. This is true even when attach sources works for the same classpath item and I know there is both source and Javadoc available, e.g. org.netbeans.api:org-openide-util:RELEASE71:jar.
Comment 1 Jesse Glick 2011-12-12 15:31:49 UTC
Confirmed that it works in 7.1, so 7.2 regression only.
Comment 2 Tomas Zezula 2011-12-12 17:31:20 UTC
I've added logging jet-main 025ee42fbb21.

Something like:

FINE [org.netbeans.api.java.queries.SourceJavadocAttacher]: Attaching of javadoc to root: jar:file:/Users/tom/Projects/other/lucene-3.3.0/lucene-core-3.0.3.jar!/ handled by: org.netbeans.modules.java.j2seplatform.queries.DefaultSourceJavadocAttacher

should be logged when the IDE is started with -J-Dorg.netbeans.api.java.queries.SourceJavadocAttacher.level=FINE option.

It works fine for me, but I am on Mac which does not use lightweight pop up menus. If no message is logged the problem is in the UI. Also there was no change in the SJA & dependent classes.
Can you try it?
Thanks
Comment 3 Jesse Glick 2011-12-12 21:23:56 UTC
Generally no message is logged. The popup is closed and nothing else seems to happen, except that focus is lost from the editor (no apparent component focused). Once I managed to get the expected dialog requesting a Javadoc root, and the log showed this. The log also shows when I attach sources. So it does seem to be a problem in the hyperlink rather than SJA itself.

This is either JDK 6 or 7, on Ubuntu 11.10.
Comment 4 Tomas Zezula 2011-12-13 09:12:25 UTC
Seems as some light weigh pop up problem.
I will borrow some Linux and test.
Thanks Jesse!
Comment 5 Quality Engineering 2011-12-14 12:10:14 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/025ee42fbb21
User: Tomas Zezula <tzezula@netbeans.org>
Log: #206278:"Attach Javadoc..." hyperlink not working
Comment 6 Jesse Glick 2011-12-15 17:39:22 UTC
I think this is a more general problem in the popup Javadoc; no hyperlinks seem to work (the popup is closed instead).
Comment 7 Jan Becicka 2012-02-16 08:52:22 UTC
javadoc attacher is in java.platform, right?
Comment 8 Tomas Zezula 2012-02-16 09:05:58 UTC
See comment # 6.
Nothing with platform source attacher.
Comment 9 Tomas Zezula 2012-02-16 09:05:58 UTC
See comment # 6.
Nothing with platform source attacher.
Comment 10 Dusan Balek 2012-02-16 09:41:37 UTC
Fixed together with #206779.

*** This bug has been marked as a duplicate of bug 206779 ***