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

Description of invokeinterface instruction is not full.

XMLWordPrintable

    • vm
    • 1.2fcs
    • sparc
    • solaris_2.4
    • Not verified



      Name: akC45999 Date: 12/05/97




      The section 6.4 "Java Virtual Machine Instruction Set" of JVM spec says nothing
      on issue of what must occur when objectref references an instance of the class
      which does not implement the interface referenced in the intruction, i.e.:


      public super class test009 // implements nothing
      {
      ...
      new class test009;
      dup;
      invokespecial Method "<init>":"()V";
      invokeinterface InterfaceMethod java/lang/Runnable.run:"()V", 1;
      ...
      }

      I noticed jdk1.1 throws in such a case an IncompatibleClassChangeError.

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

            gbrachasunw Gilad Bracha (Inactive)
            rfqsunw Rfq Rfq (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: