Re: MessageBundle ???

"[email protected]" <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <1301667745.1724.2.camel@linux-pc>
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);
  }
}------------->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


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");
    }
  }
}------------->the execution gives:
Exception in thread "main" java.lang.ExceptionInInitializerError
   at
java.lang.Class.initializeClass(/extra/src/gcc-4.3.0/libjava/java/lang/nat
Class.cc:792)
   at
java.util.Currency.getInstance(/extra/wgcc/sys-root/i686-pc-mingw32/libjav
a/java/util/Currency.java:290)
   at
java.text.DecimalFormatSymbols.<init>(/extra/wgcc/sys-root/i686-pc-mingw32
/libjava/java/text/DecimalFormatSymbols.java:161)
   at
java.text.DecimalFormat.<clinit>(/extra/wgcc/sys-root/i686-pc-mingw32/libj
ava/java/text/DecimalFormat.java:96)
   at
java.lang.Class.initializeClass(/extra/src/gcc-4.3.0/libjava/gcj/cni.h:99)

   at
gnu.java.net.protocol.http.HTTPDateFormat.<init>(/extra/wgcc/sys-root/i686
-pc-mingw32/libjava/gnu/java/net/protocol/http/HTTPDateFormat.java:75)
   at
gnu.java.net.protocol.http.Headers.<clinit>(/extra/wgcc/sys-root/i686-pc-m
ingw32/libjava/gnu/java/net/protocol/http/Headers.java:76)
   at
java.lang.Class.initializeClass(/extra/src/gcc-4.3.0/libjava/gcj/cni.h:99)

   at
gnu.java.net.protocol.http.HTTPURLConnection.<init>(/extra/wgcc/sys-root/i
686-pc-mingw32/libjava/gnu/java/net/protocol/http/HTTPURLConnection.java:101)
   at
gnu.java.net.protocol.http.Handler.openConnection(/extra/wgcc/sys-root/i68
6-pc-mingw32/libjava/gnu/java/net/protocol/http/Handler.java:69)
   at
java.net.URL.openConnection(/extra/wgcc/sys-root/i686-pc-mingw32/libjava/j
ava/net/URL.java:724)
   at Test.<init>(ccSsHWJM.jar:0)
Caused by: java.lang.NullPointerException
   at
java.io.InputStreamReader.read(/extra/wgcc/sys-root/i686-pc-mingw32/libjav
a/java/io/InputStreamReader.java:246)
   at
java.io.BufferedReader.fill(/extra/wgcc/sys-root/i686-pc-mingw32/libjava/j
ava/io/BufferedReader.java:374)
   at
java.io.BufferedReader.readLine(/extra/wgcc/sys-root/i686-pc-mingw32/libja
va/java/io/BufferedReader.java:476)
   at
java.util.Properties.load(/extra/wgcc/sys-root/i686-pc-mingw32/libjava/jav
a/util/Properties.java:201)
   at
java.util.Currency.<clinit>(/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)

   ...11 more


WTH!!! Is this an April's fish? :D
I would like to have working connections and working replaceAll at the
same time... is it possible? :)
Are we facing the same problem of previous mail or this is another
problem?
How could this be solved? Please save me! 


ps. I could get rid of the MessageBundle problem linking everytime a
libgcj.o created with gcj --resource
gnu/java/util/regex/MessagesBundle.properties C:\wgcc\share\java
\libgcj-4.3.0.jar and then compiling the application with: gcj
--main=MainName MainName.java libgcj.o -o Output.exe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.