JDK-4305459 : GetBytecodes returns byte 0 instead of 1
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 1.4.2,6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_nt
  • CPU: generic,x86
  • Submitted: 2000-01-19
  • Updated: 2012-10-01
  • Resolved: 2004-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 mustangFixed
Description

Name: dkC59003			Date: 01/18/2000



The HotSpot VM 1.3.0rc1-S fails the test nsk/jvmdi/GetBytecodes/bytecodes001
from testbase_nsk as function GetBytecodes returns invalid byte.
Classic works fine.

To reproduce the bug run 
doit.bat <jdk root directory>
in
/net/sqesvr/vsn/GammaBase/Bugs/<this bug number>

(To try classic VM run doit.bat <jdk root directory> -classic)

The test outputs:

java version "1.3.0rc1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-S)
Java HotSpot(TM) Client VM (build 1.3.0rc1-S, mixed mode)

Name = <init>, sig = ()V: code index = 3: byte expected: 0x1, got: 0x0

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

Name: ipR10196			Date: 08/26/2003


Similar bug is revealed for the corresponding JVMTI function
GetBytecodes(). The tests affected are:

  nsk/jvmti/GetBytecodes/bytecodes001

Ivan Popov <###@###.###>

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

Comments
SUGGESTED FIX This fix is included in a batch of JFluid/RedefineClasses fixes targeted for a Tiger-Update release. Please see jfluid-merge-update4-full-webrev.tar.Z attachment in 5088035 for the complete set of changes. ###@###.### 2005-2-25 22:22:36 GMT
25-02-2005

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang FIXED IN: mustang INTEGRATED IN: mustang
31-08-2004

EVALUATION For get/put and invoke instructions the returned index is an index into the constant pool cache. For these instructions we can obtain the original constant pool index from the cp cache. ###@###.### 2004-08-06
06-08-2004