Java: Fix gcjh JNI bug
Bryce McKinlay
bryce@waitaki.otago.ac.nz
Sun Jun 2 10:12:00 GMT 2002
"gcjh -jni" now looks at superclasses in order to determine if a given
class is a throwable. Unfortunatly if it tried to do this for any class
which did not directly extend throwable it would give an error like:
"couldn't find class `ava.lang.Object'."
Because it was calling itself with a classname extracted from the super
field of a classfile while it expected the class name as a signature
fragment (ie with a leading 'L'), and so was stripping the first
character. In addition the super class name obtained directly from the
classfile data is not null terminated, so we must copy it into a
null-terminated string before recursing.
This patch fixes, ok to commit?
regards
Bryce.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcjh-jni.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20020602/21fbfa8f/attachment.ksh>
More information about the Java-patches
mailing list