Java: fix Array_3 byte compiler failures

Eric Blake ebb9@email.byu.edu
Thu Sep 26 15:17:00 GMT 2002


Per Bothner wrote:
>> In your initial posting you said that:
> aconst_null
> arraylength
> is valid bytecode.

It is valid! I compiled this program with jikes pre-1.17 (the official 
1.17 is scheduled for this weekend), and it successfully verified with 
JDK 1.4.1. I have also attached mention of this thread to bug 8025.
class Foo {
 public static void main(String[] args) {
 int i = ((Object[]) null).length;
 ((Object[]) null)[0] = null;
 }
}
Method void main(java.lang.String[])
 0 aconst_null
 1 arraylength
 2 istore_1
 3 aconst_null
 4 iconst_0
 5 aconst_null
 6 aastore
 7 return
-- 
This signature intentionally left boring.
Eric Blake ebb9@email.byu.edu
 BYU student, free software programmer


More information about the Java mailing list

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