-
Bug
-
Resolution: Duplicate
-
P4
-
6
-
generic, x86
-
generic, windows_xp
$ cat A.java
class A {
void A(Object o) {
int[] x = (int[]) o;
}
}
$ javap -c A
Compiled from "A.java"
class A extends java.lang.Object{
A();
Code:
0: aload_0
1: invokespecial #1; //Method java/lang/Object."<init>":()V
4: return
void A(java.lang.Object);
Code:
0: aload_1
1: checkcast #2; //class "[I"
4: checkcast #2; //class "[I"
7: astore_2
8: return
}
###@###.### 2005-03-28 20:06:46 GMT
class A {
void A(Object o) {
int[] x = (int[]) o;
}
}
$ javap -c A
Compiled from "A.java"
class A extends java.lang.Object{
A();
Code:
0: aload_0
1: invokespecial #1; //Method java/lang/Object."<init>":()V
4: return
void A(java.lang.Object);
Code:
0: aload_1
1: checkcast #2; //class "[I"
4: checkcast #2; //class "[I"
7: astore_2
8: return
}
###@###.### 2005-03-28 20:06:46 GMT
- duplicates
-
JDK-6585476 Duplicate checkcast instruction with array types
- Closed
-
JDK-6526448 Unecessary checkcast generated
- Closed