Another GCJ win32 bug "regex" (String.split()) not working

Andreas Grunewald gruni@users.sourceforge.net
Mon Apr 11 09:28:00 GMT 2005


Hey everybody,
I know GCJ is mainly developed under a Linux enviroment but I'm close to 
the point of saying it's useless for compiling in windows.
I get another bug this time when using String.split("\\\\") which uses 
the regex package. I searched the Bug database but couldn't find 
anything so here try this simple programm
/**
 * According to
 * http://www.kaffe.org/~stuart/japi/htmlout/h-jdk14-libgcj.html
 * String.split("\\\\") should work because java.util.regex
 * is implemented at 100% and no mention of String.split could be found
 * @author Grunewald
 */
public class GcjStringSplitTest {
 public static void main(String args[]){
 System.setErr(System.out);
 String test = "E:\2004円-development\2005円-extraextra\\word.test";
 System.out.println(test);
 String[] eray = test.split("\\\\");// This is the regex "\\" in 
Java syntax
 System.out.println(eray.length);
 System.out.println(eray[1]);
 }
}
it should output
E:2004円-development2005円-extraextra\word.test
4
2004-development
according to what one can read on the website it should work because the 
status indicates it. But I get the following on GCJ3.4 from thisiscool.com
E:2004円-development2005円-extraextra\word.test
Exception in thread "main" java.lang.Error: Not implemented
 at 0x00411fde (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004124d2 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00434774 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0043f8c7 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004079fd (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at GcjStringSplitTest.main(java.lang.String[]) 
(E:2004円-development2005円-extraextra\src\GcjStringSplitTest.java:13)
 at 0x0044dfc1 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0040fcfe (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004183c0 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00403257 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00403327 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at main (C:\DOKUME~1\GRUNEW~1\LOKALE~1\Temp\cc2Xbaaa.i:12)
 at 0x00401209 (E:2004円-development2005円-extraextra\natClass.cc)
 at 0x00401234 (E:2004円-development2005円-extraextra\natClass.cc)
 at 0x7c816d4b (Unknown Source)
I think the regex stuff just wasn't implemented at that time. So I tried 
GCJ 4.0 and got
E:2004円-development2005円-extraextra\word.test
Exception in thread "main" java.lang.ExceptionInInitializerError
 at 0x0041313e (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00412ad2 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0044c734 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004542d4 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0044c81c (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00409e8f (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0049f2ce (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004a2d43 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00409c84 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00447219 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004473c0 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0044740f (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00407ced (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at GcjStringSplitTest.main(java.lang.String[]) 
(E:2004円-development2005円-extraextra\src\GcjStringSplitTest.java:13)
 at 0x00410b53 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00434f30 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00403676 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004037f7 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at _main (C:\DOKUME~1\GRUNEW~1\LOKALE~1\Temp\ccAldaaa.i:12)
 at 0x004011e3 (E:2004円-development2005円-extraextra\prims.cc)
 at 0x00401234 (E:2004円-development2005円-extraextra\prims.cc)
 at 0x7c816d4b (Unknown Source)
Caused by: java.util.MissingResourceException: Bundle 
gnu/regexp/MessagesBundle not found
 at 0x0041313e (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00412ad2 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00454334 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x0044d1a4 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00513945 (E:\datal\gcc\gcc\libffi\src\x86\win32.S:257)
 at 0x004c404d (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004c40da (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x004a2992 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 at 0x00409c84 (E:\datal\gcc\gcc\gcc\libgcc2.c)
 ...16 more
So there seems to be something wrong with this releases.
I'd like to be more benifitial in helping to test the GCJ, by trying to 
compile my project but that's pretty much all I can do, because my C 
skills are way to limited.
Regards,
 Andreas
PS I would suggest to make nightly builds of the W32 build via the 
sourceforge compile frams, my skills in setting this stuff up are 
limited but I'd really love to do some Quality Assuance.
Also a downloadable libgcj with debugging information would help the 
testers who are not so skilled in compiling the gcc/gcj


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /