New Miscompilation Into Bytecode Error
Tom Tromey
tromey@redhat.com
Thu Jul 1 15:41:00 GMT 2004
>>>>> "Stephan" == sf <sf@b-i-t.de> writes:
>> Hello1ドル$Local(Hello,int,int);
>> Code:
>> 0: aload_0
>> 1: aload_1
>> 2: putfield #14; //Field this0ドル:LHello;
Stephan> The initializer must be called first (I think).
There's actually a special case for assignment to fields declared in
this class -- you can have those assignments before the super call.
This was introduced to let constructors set up `this0ドル' and friends so
that other methods called by the constructor wouldn't fail with a
cryptic NullPointerException.
Tom
More information about the Java
mailing list