[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/23468] New: java.net.URI throws URISyntaxException given
From: |
chris at hubick dot com |
Subject: |
[Bug classpath/23468] New: java.net.URI throws URISyntaxException given a URL |
Date: |
18 Aug 2005 20:32:31 -0000 |
If you try to create a java.net.URI passing a URL string such as
"http://java.sun.com/j2se/1.3/" to the constructor, it will throw a
URISyntaxException:
java.net.URISyntaxException: doesn't match URI regular expression:
http://java.sun.com/j2se/1.3/
at java.net.URI.parseURI(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
at java.net.URI.URI(java.lang.String) (/usr/lib/libgcj.so.6.0.0)
It is my understanding that all URL's should be valid URI's. That URL is an
example of a valid hierarchical URI taken right from Sun's java.net.URI online
documentation. Also, this worked using Sun's JVM/classes.
I am using Java tools from updated Fedora Core 4 with JPackage:
java --version
java version "1.4.2"
gij (GNU libgcj) version 4.0.1 20050727 (Red Hat 4.0.1-5)
--
Summary: java.net.URI throws URISyntaxException given a URL
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chris at hubick dot com
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23468
- [Bug classpath/23468] New: java.net.URI throws URISyntaxException given a URL,
chris at hubick dot com <=