[kaffe] Problem with String.split(String)

Max Gilead gilead at yellowhedgehog.com
Wed Jun 9 18:08:04 PDT 2004


Hello!

I found a problem while trying to run this under Kaffe:

public class Test { public static void main(String[] args) {
System.out.println("A,B".split(",")[0]);
} }

The result is this exception:

java.lang.ExceptionInInitializerError
   at java.util.regex.Pattern.<init> (Pattern.java:88)
   at java.util.regex.Pattern.compile (Pattern.java:144)
   at java.util.regex.Pattern.compile (Pattern.java:126)
   at java.lang.String.split (String.java:777)
   at Test.main (Test.java:5)
Caused by: java.util.MissingResourceException: BaseName: 
gnu/regexp/MessagesBund le Locale: en_US ClassLoader : 
kaffe.lang.PrimordialClassLoader at 834d4f4
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:61)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:37)
   at gnu.regexp.RE.<clinit> (RE.java:109)
   at gnu.regexp.RESyntax.<clinit> (RESyntax.java:57)
   at java.util.regex.Pattern.<init> (Pattern.java:88)
   ...4 more
java.util.MissingResourceException: BaseName: gnu/regexp/MessagesBundle 
Locale: en_US ClassLoader : kaffe.lang.PrimordialClassLoader at 834d4f4
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:61)
   at java.util.ResourceBundle.getBundle (ResourceBundle.java:37)
   at gnu.regexp.RE.<clinit> (RE.java:109)
   at gnu.regexp.RESyntax.<clinit> (RESyntax.java:57)
   at java.util.regex.Pattern.<init> (Pattern.java:88)
   at java.util.regex.Pattern.compile (Pattern.java:144)
   at java.util.regex.Pattern.compile (Pattern.java:126)
   at java.lang.String.split (String.java:777)
   at Test.main (Test.java:5)

The same test case breaks SableVM but causes completely different error 
but still related to missing resource bundle, jamvm works fine. I'll be 
happy to provide any additional info if needed.

Bye,
Max





More information about the kaffe mailing list