-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 1.1
-
Component/s: hotspot
-
1.1
-
sparc
-
solaris_2.4
-
Not verified
Name: akC45999 Date: 11/18/96
The section "6.4 The Virtual machine instruction set" of The Java Virtual Machine, subsection lookupswitch claims:
"The npairs must be greater than or equal to 0.".
Meanwhile, following test crashes the Java Virtual Machine:
-----------------------------------------------------------------
public class lookupswitch00302 {
public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
stack 3 locals 1
{
iconst_0;
lookupswitch {
default: Ld
};
iconst_2;
ireturn;
Ld: iconst_0;
ireturn;
}
}
-----------------------------------------------------------------
======================================================================