From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050330 Description of problem: The following attached program runs sun java, but not under gcj. It's a portion of what db-4.2.52 wants to do in its java bindings. OOo 1.9.90 uses db4 now. Version-Release number of selected component (if applicable): gcc-4.0.0-0.38 How reproducible: Always Steps to Reproduce: 1. compile and run attachment Actual Results: failure to find bytearray java.lang.ClassNotFoundException: [B not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.VMClassLoader{urls=[core:/], parent=null}} at java.net.URLClassLoader.findClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String, boolean) (/usr/lib/libgcj.so.6.0.0) at java.lang.ClassLoader.loadClass(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at .__gxx_personality_v0 (/home/caolan/java/a.out) at .__gxx_personality_v0 (/home/caolan/java/a.out) at .__gxx_personality_v0 (/home/caolan/java/a.out) at .__libc_start_main (/lib/tls/libc-2.3.4.so) at .__gxx_personality_v0 (/home/caolan/java/a.out) Expected Results: success Additional info: It wants to get a jclass for a byte array
Created attachment 112637 [details] sample code
btw if there is a quick and dirty workaround let me know as we can't build 1.9.90 at the moment.
I'm checking in a fix for this to the gcc 4.0 branch.
I wonder if the fix for this has any relation to the regression of rh#154725# ?