This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Java: fix Array_3 byte compiler failures


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]