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 104154 - URISyntaxException when getting javadoc for assertEquals
Summary: URISyntaxException when getting javadoc for assertEquals
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
Depends on:
Blocks: 90787
  Show dependency tree
 
Reported: 2007-05-17 09:39 UTC by Jiri Prox
Modified: 2007-09-26 09:14 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 Jiri Prox 2007-05-17 09:39:20 UTC
NetBeans IDE Dev (Build 200705161800)
1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

URISyntaxException thrown when getting javadoc for assertEquals.

Steps to reproduce:
1) open class extending NBTestCase
2) type "assertEquals"
3) open CC

->
java.net.URISyntaxException: Illegal character in fragment at index 138:
jar:file:/space/builds/netbeans6.0-200705161800/java1/docs/junit-3.8.2-api.zip!/junit/framework/Assert.html#assertEquals(java.lang.Object,
java.lang.Object)
	at java.net.URI$Parser.fail(URI.java:2809)
	at java.net.URI$Parser.checkChars(URI.java:2982)
	at java.net.URI$Parser.parse(URI.java:3028)
	at java.net.URI.<init>(URI.java:578)
	at org.netbeans.api.java.source.SourceUtils.getJavadoc(SourceUtils.java:628)
	at
org.netbeans.modules.editor.java.JavaCompletionDoc.<init>(JavaCompletionDoc.java:101)
	at
org.netbeans.modules.editor.java.JavaCompletionDoc.create(JavaCompletionDoc.java:81)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.resolveDocumentation(JavaCompletionProvider.java:467)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:321)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.run(JavaCompletionProvider.java:96)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:501)
	at
org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:238)
	at
org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:195)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Jan Pokorsky 2007-05-17 13:41:21 UTC
spaces must be escaped
Comment 2 Jan Pokorsky 2007-05-17 15:50:25 UTC
fixed in

/cvs/java/editor/src/org/netbeans/modules/editor/java/HTMLJavadocParser.java
new revision: 1.13; previous revision: 1.12
/cvs/java/source/src/org/netbeans/api/java/source/SourceUtils.java
new revision: 1.33; previous revision: 1.32
Comment 3 Jiri Prox 2007-06-07 17:09:29 UTC
v.