Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4015188

The npairs==0 for lookupswitch instruction crashes the Java Virtual Machine.

XMLWordPrintable

    • 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;
      }

      }
      -----------------------------------------------------------------

      ======================================================================

            fyellinsunw Frank Yellin (Inactive)
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: