gcj -C / gcj verifier bug (?)

Tom Tromey tromey@redhat.com
Fri Dec 7 17:04:00 GMT 2001


I tried running rhug through the gij verifier and I think it found a
`gcj -C' bug.
Here is body of com.ibm.bsf.util.type.TypeConvertorRegistry1ドル.<init>:
 0: aload_0
 1: aload_1
 2: putfield #14=<Field com.ibm.bsf.util.type.TypeConvertorRegistry1ドル.this0ドル com.ibm.bsf.util.type.TypeConvertorRegistry>
 5: aload_0
 6: invokespecial #17=<Method java.lang.Object.<init> ()void>
 9: return
Here we're using `this' before invoking the superclass <init>.
The JVM Spec 4.9.4 says:
 It must either invoke an alternative instance initialization method
 for class myClass or invoke the initialization method of a
 superclass on the this object before it is allowed to do anything
 else with this.
Is there something I'm missing? Both the JDK and gcj verifiers pass
this.
Tom


More information about the Java mailing list

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