Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 39302 invoked from network); 10 Jul 2007 17:09:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2007 17:09:31 -0000 Received: (qmail 85859 invoked by uid 500); 10 Jul 2007 17:09:30 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 85723 invoked by uid 500); 10 Jul 2007 17:09:30 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 85496 invoked by uid 99); 10 Jul 2007 17:09:29 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 10:09:28 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2007 10:09:25 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 269957141F4 for ; Tue, 10 Jul 2007 10:09:05 -0700 (PDT) Message-ID: <2622205.1184087345153.JavaMail.jira@brutus> Date: Tue, 10 Jul 2007 10:09:05 -0700 (PDT) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-4411) [classlib][luni][ibmvm][jedit] URL.getHost() returns null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [classlib][luni][ibmvm][jedit] URL.getHost() returns null --------------------------------------------------------- Key: HARMONY-4411 URL: https://issues.apache.org/jira/browse/HARMONY-4411 Project: Harmony Issue Type: Bug Components: App-Oriented Bug Reports, Classlib Reporter: Vasily Zakharov 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.