From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12879 invoked by alias); 1 Apr 2011 14:57:13 -0000 Received: (qmail 12870 invoked by uid 22791); 1 Apr 2011 14:57:12 -0000 X-SWARE-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_GC,T_RP_MATCHES_RCVD,WEBMAIL_BODY X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 01 Apr 2011 14:57:02 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p31Ev1Gu005050 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 1 Apr 2011 10:57:01 -0400 Received: from zebedee.pink (ovpn-113-109.phx2.redhat.com [10.3.113.109]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p31Ev0mq007253; Fri, 1 Apr 2011 10:57:01 -0400 Message-ID: <4D95E7BB.4020409@redhat.com> Date: Fri, 01 Apr 2011 14:57:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9 MIME-Version: 1.0 To: java@gcc.gnu.org Subject: Re: MessageBundle ??? References: <1301667745.1724.2.camel@linux-pc> In-Reply-To: <1301667745.1724.2.camel@linux-pc> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2011-04/txt/msg00008.txt.bz2 On 04/01/2011 03:22 PM, dj_def@webmail.it wrote: > 1) > There is this test that is working under gcc 4.3.0 compiled by me with > ecj1.exe created under ubuntu linux 11.04 (with i686-pc-mingw32-gcj > cross compiler). > This same test is not working with thisiscool gcc 4.3.0 (eclipse): > import java.util.*; > import java.util.regex.*; > public class Test { > static public void main (String[] argv) { > String s = new String("hom hom"); > String t = new String("om"); > String u = s.replaceAll(t, "i Jack!"); > System.out.println(u); > } > } Sorry, I have no idea what this is. ------------->gives: java.lang.NumberFormatException: invalid character > at position 1 g$ò< ... > > > 2) > This other test is not working with both the versions. > > class Test { > > public static void main(String argv[]) { > > System.out.printf("%09.3f%n",3.1415926535); > } > } > > -------------> gives a: Exception in thread "main" > java.lang.NumberFormatException: invalid character at position 2 in 09 That's just a bug: leading zeroes in format fields aren't being handled correctly. The "09" is being parsed as an octal number because it begins with a zero. > 3) > This last test works with thisiscool gcc and not with the gcc I > compiled: > > import java.net.MalformedURLException; > import java.net.URL; > import java.net.URLConnection; > > public class LastTest { > public static void main(String args[]) { > try { > URL url = new URL("http://www.google.it"); > url.openConnection(); > } > catch(Exception e) { > System.out.println("exception"); > } > } > } This will be another missing resource, I expect. Here's the actual exception > at > java.util.Currency.(/extra/wgcc/sys-root/i686-pc-mingw32/libjava/j > ava/util/Currency.java:136) > at > java.lang.Class.initializeClass(/extra/src/gcc-4.3.0/libjava/gcj/cni.h:99) Look at Currency.java:136 properties.load(Currency.class.getResourceAsStream("iso4217.properties")); So you need to link iso4217.properties.o Andrew.