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

Verifier permits non-integer operand for ifeq instruction.

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.4
    • Not verified



      Name: akC45999 Date: 10/18/96


      The section "6.4 The Virtual machine instruction set" of The Java Virtual Machine,
      subsection if<cond> claims:

      "The value must be of type int".
      Meanwhile, following test passes the verification:
      -----------------------------------------------------------------
      public class ifcond00702 {

      public static Method run:"([Ljava/lang/String;Ljava/io/PrintStream;)I"
      stack 3 locals 2
      {
      aload_0; // load value of type reference
      ifeq L; //The value must be of type int.
      L: 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: