Bug 153230 - [OOo][gcj] JNIEnv::FindClass("[B") fails
[OOo][gcj] JNIEnv::FindClass("[B") fails
Product: Fedora
Classification: Fedora
Component: gcc (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Tom Tromey
Depends On:
Blocks: 153231
  Show dependency treegraph
Reported: 2005-04-03 14:30 EDT by Caolan McNamara
Modified: 2014-08-11 01:46 EDT (History)
2 users (show)

See Also:
Fixed In Version: 4.0.0-2
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-04 05:59:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
sample code (709 bytes, text/x-csrc)
2005-04-03 14:31 EDT, Caolan McNamara
no flags Details

  None (edit)
Description Caolan McNamara 2005-04-03 14:30:59 EDT
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):

How reproducible:

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 14:31:28 EDT
Created attachment 112637 [details]
sample code
Comment 2 Caolan McNamara 2005-04-05 14:45:01 EDT
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 18:36:33 EDT
I'm checking in a fix for this to the gcc 4.0 branch.
Comment 4 Caolan McNamara 2005-04-13 16:12:50 EDT
I wonder if the fix for this has any relation to the regression of rh#154725# ?

Note You need to log in before you can comment on or make changes to this bug.