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 119301 - [60cat] exception on Javadoc viewer
Summary: [60cat] exception on Javadoc viewer
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Petr Hrebejk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-18 02:53 UTC by tetsu
Modified: 2009-11-02 10:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stacktrace (4.03 KB, text/plain)
2007-10-18 02:53 UTC, tetsu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tetsu 2007-10-18 02:53:06 UTC
1. Open Javadoc viewer by pressing Window --> Other --> Javadoc Viewer.
2. In this viewer, the Javadoc is generated from source code on the fly.
3. I copied segment of Javadoc as following.
/**
*An instance of {@code DataFlavor} encapsulates a content type as
*defined in <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>
*/
4. If you click the hyperlink in the Javadoc viewer, exception will pop up.
5. If the link point to a html page, you won't get exception.

I also attached the stacktrack file. Please check it out.
Comment 1 tetsu 2007-10-18 02:53:46 UTC
Created attachment 51179 [details]
stacktrace
Comment 2 Jan Lahoda 2007-10-18 08:31:23 UTC
Hm, I have never seen the second exception, but my wild guess would be that this is all caused by use of an editor's kit
(PlainKit) instead of JDK's HTML kit. This should be probably prevented.

Nonetheless, I have fixed a few exceptions in java/source when doc.getProperty(StreamDescriptionProperty) was not a
DataObject - there is no guarantee that the SDP will be a DO.

Checking in JavaSource.java;
/cvs/java/source/src/org/netbeans/api/java/source/JavaSource.java,v  <--  JavaSource.java
new revision: 1.92; previous revision: 1.91
done
Checking in support/OpenedEditors.java;
/cvs/java/source/src/org/netbeans/api/java/source/support/OpenedEditors.java,v  <--  OpenedEditors.java
new revision: 1.8; previous revision: 1.7
done
Comment 3 _ sandipchitale 2007-10-22 00:47:04 UTC
I do not see the exception. I am able to load the RFC document. Seems to appear as a plain text instead of html. After
that if I use a back arrow to go back to original Javadoc it is shown as plain text i.e. not HTML. This indicates the
JEditorComponent lost it's editor kit or the content type somehow.

Assigning to Petr Hrebejk for further assignment to the owner of DocumentationScrollPane/HTMLDocView.
Comment 4 tetsu 2007-10-22 02:30:45 UTC
Yeah, I tested it with latest nightly build 200710211200 and don't got the exception anymore.
It seems that this bug has been fixed.
But, as Sandipchitale said, after push the go back button, the Javadoc viwer stop parse html page and just show it as
plain text.
Comment 5 _ sandipchitale 2007-10-22 02:31:20 UTC
The same behaviour happens if you invoke the Javadoc on the method and then click on the hyperlink in the Javadoc popup.
Comment 6 _ sandipchitale 2007-10-22 02:32:27 UTC
I meant to say "If you invoke code completion..." in the last comment.
Comment 7 Jiri Kovalsky 2007-10-24 06:36:32 UTC
This issue was reported by a NetCAT participant.
Comment 8 David Strupl 2009-03-31 15:53:48 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 9 Quality Engineering 2009-11-02 10:58:23 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX