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.
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.
Created attachment 51179 [details] stacktrace
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
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.
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.
The same behaviour happens if you invoke the Javadoc on the method and then click on the hyperlink in the Javadoc popup.
I meant to say "If you invoke code completion..." in the last comment.
This issue was reported by a NetCAT participant.
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".
NetBeans.org Migration: changing resolution from LATER to WONTFIX