You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Vasily Zakharov (JIRA)" <ji...@apache.org> on 2007/07/11 19:42:04 UTC
[jira] Updated: (HARMONY-4411) [ibm vme][kernel][jedit]
ClassLoader.getSystemResource() returns URL with null host
[ https://issues.apache.org/jira/browse/HARMONY-4411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vasily Zakharov updated HARMONY-4411:
-------------------------------------
Summary: [ibm vme][kernel][jedit] ClassLoader.getSystemResource() returns URL with null host (was: [ibmvm][kernel][jedit] ClassLoader.getSystemResource() returns URL with null host)
> [ibm vme][kernel][jedit] ClassLoader.getSystemResource() returns URL with null host
> -----------------------------------------------------------------------------------
>
> Key: HARMONY-4411
> URL: https://issues.apache.org/jira/browse/HARMONY-4411
> Project: Harmony
> Issue Type: Bug
> Components: App-Oriented Bug Reports, VM
> Reporter: Vasily Zakharov
> Attachments: test.jar
>
>
> Consider the following simple test:
> public class Test {
> public static void main(String[] args) {
> Class cls = javax.swing.plaf.metal.MetalLookAndFeel.class;
> java.net.URL url = cls.getResource("icons/Error.gif");
> System.out.println("URL: " + url);
> String host = url.getHost();
> System.out.println("Host: " + host);
> System.out.println("".equals(host) ? "SUCCESS" : "FAIL");
> }
> }
> Output on RI:
> URL: jar:file:/C:/Program%20Files/Java/jre1.5.0_11/lib/rt.jar!/javax/swing/plaf/metal/icons/Error.gif
> Host:
> SUCCESS
> Harmony/DRLVM:
> URL: jar:file:/C:/HarmonyTrunk/working_vm/build/deploy/jdk/jre/lib/boot/swing.jar!/javax/swing/plaf/metal/icons/Error.gif
> Host:
> SUCCESS
> Harmony/IBMVM:
> URL: jar:file:/C:/HarmonyTrunk/working_classlib/deploy/jdk/jre/lib/boot/swing.jar!/javax/swing/plaf/metal/icons/Error.gif
> Host: null
> FAIL
> Though the test passes on DRLVM, I suspect a problem in java.net.URL implementation in classlib.
> The problem was discovered while running jEdit on Harmony.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.