/* * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * This code is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * version 2 for more details (a copy is included in the LICENSE file that * accompanied this code). * * You should have received a copy of the GNU General Public License version * 2 along with this work; if not, write to the Free Software Foundation, * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions.
*/
/* assignment operators don't work; see 4921209 */ if (_Integer++ != 8) thrownew Error(); if (_Integer++ != 9) thrownew Error(); if (++_Integer != 11) thrownew Error(); if ((_Integer += 3) != 14) thrownew Error(); if ((_Integer -= 3) != 11) thrownew Error();
Integer i = 0;
i = i + 2;
i += 2; if (i != 4) thrownew Error();
int j = 0;
j += i; if (j != 4) thrownew Error();
Integer a[] = new Integer[1];
a[0] = 3;
a[0] += 3; if (a[0] != 6) thrownew Error();
Froobie x = new Froobie();
Froobie y = new Froobie();
x.next = y;
x.next.i = 4;
x.next.i += 4; if (--x.next.i != 7) thrownew Error(); if (x.next.i-- != 7) thrownew Error(); if (x.next.i != 6) thrownew Error();
boxIndex();
boxArray();
}
staticvoid boxIndex() {
String[] a = { "hello", "world" };
Integer i = 0;
System.out.println(a[i]);
}
staticvoid boxArray() {
Integer[] a2 = { 0, 1, 2, 3 }; for (int i : a2)
System.out.println(i);
}
staticclass Froobie {
Froobie next = null;
Integer i = 1;
}
staticclass Scott {
Integer i[];
Integer j[];
Integer k;
int q = i[j[k]]++;
}
class T4974939 { void f() { Byte b = 12; Byte c = 'a';
Short s = 'b'; Short t = 12;
Character d = 12;
}
}
}
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.7Bemerkung:
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.