-
Bug
-
Resolution: Fixed
-
P3
-
1.4.0
-
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)
======================================================================