Bug 153230

Summary: [OOo][gcj] JNIEnv::FindClass("[B") fails
Product: [Fedora] Fedora Reporter: Caolan McNamara <caolanm>
Component: gccAssignee: Tom Tromey <tromey>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: nobody+pnasrat, patrickm
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.0.0-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-04 09:59:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 153231    
Attachments:
Description Flags
sample code none

Description Caolan McNamara 2005-04-03 18:30:59 UTC
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

Comment 1 Caolan McNamara 2005-04-03 18:31:28 UTC
Created attachment 112637 [details]
sample code

Comment 2 Caolan McNamara 2005-04-05 18:45:01 UTC
btw if there is a quick and dirty workaround let me know as we can't build
1.9.90 at the moment.

Comment 3 Tom Tromey 2005-04-06 22:36:33 UTC
I'm checking in a fix for this to the gcc 4.0 branch.


Comment 4 Caolan McNamara 2005-04-13 20:12:50 UTC
I wonder if the fix for this has any relation to the regression of rh#154725# ?