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

JVMS not updated to match requirements of JLS 2ed for resolution of statics

XMLWordPrintable

    • vm
    • beta
    • x86
    • windows_2000



      Name: nt126004 Date: 06/20/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)



      FULL OPERATING SYSTEM VERSION :

      Microsoft Windows 2000 [Version 5.00.2195] with SP2

      ADDITIONAL OPERATING SYSTEMS :

      All

      A DESCRIPTION OF THE PROBLEM :
      The JLS 2ed Section 13.1 changes the way in which
      references to static fields and methods should be encoded
      in the binary class file. In particular which class is used
      to qualify the reference and under which circumstances.

      However, according to the JVMS Section 4.4.2, the
      class_index in a MethodRef or FieldRef entry in the
      constant pool is supposed to refer to the class or
      interface that contains the *declaration* of the field or
      method.

      These two sections contradict each other. It would seem
      that JVMS 4.4.2 was not updated to reflect the change in
      behaviour described in JLS 13.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      N/A - spec bug

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      N/A - spec bug

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      N/A - spec bug
      ---------- END SOURCE ----------

      CUSTOMER WORKAROUND :
      Follow the JLS rules when writing tools to read binary
      class files.
      (Review ID: 153808)
      ======================================================================

            gbrachasunw Gilad Bracha (Inactive)
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: