|
From: | berrange at redhat dot com |
Subject: | [Bug classpath/25141] java.net.URL(URL context, String spec) constructor does not pass-through java.net.URLStreamHandler impl from context |
Date: | 28 Nov 2005 17:42:38 -0000 |
------- Comment #1 from berrange at redhat dot com 2005-11-28 17:42 ------- Created an attachment (id=10355) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10355&action=view) A test program demonstrating the problem handling URLStreamHandler With JamVM 1.1.3 + ClassPath 0.19 the demo program outputs: $ jamvm -cp . CustomURIHandlerTest Protocol handler not found: acme java.net.MalformedURLException: Protocol handler not found: acme at java.net.URL.<init> (URL.java:450) at java.net.URL.<init> (URL.java:345) at CustomURIHandlerTest.main (CustomURIHandlerTest.java:29) With Sun JDK 1.4.2 / 1.5.0 it outputs: $ /usr/local/j2sdk1.4.2_10/bin/java -cp . CustomURIHandlerTest Docs are at acme://www.redhat.com:80/docs/manuals/enterprise/ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25141
[Prev in Thread] | Current Thread | [Next in Thread] |