-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0_02, 1.4.1
-
mantis
-
generic, sparc
-
generic, solaris_7
-
Verified
Name: pvR10198 Date: 08/05/2002
The Hotspot VM (build 1.4.1-beta-b18) fails the following test
from testbase_nsk:
nsk/jvmdi/RedefineClasses/redefclass011
The test exercises JVMDI function RedefineClasses(classCount, classDefs).
The test checks if the function returns JVMDI_ERROR_INVALID_CLASS
if classDefs[].clazz field is null.
The test is based on the following assertion from JVMDI spec:
| Redefine Classes
|
| typedef struct {
| jclass clazz; /* Class to be redefined */
| jint class_byte_count; /* number of bytes defining class (below) */
| jbyte *class_bytes; /* bytes defining class */
| /* (in Class File Format of JVM spec) */
| } JVMDI_class_definition;
|
| jvmdiError
| RedefineClasses(jint classCount, JVMDI_class_definition *classDefs)
|
| ... (skipped)
|
| This function returns either a universal error or one of the following errors:
|
| JVMDI_ERROR_NULL_POINTER
| Invalid pointer: classDefs or one of class_bytes is NULL.
|
| JVMDI_ERROR_INVALID_CLASS
| An element of classDefs is not a valid class.
To reproduce the bug run script in GammaBase/Bugs/<this bug number> directory:
sh doit.sh <JAVA_HOME>
Running the test outputs:
java version "1.4.1-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-rc-b18)
Java HotSpot(TM) Client VM (build 1.4.1-rc-b18, mixed mode)
Error expected: JVMDI_ERROR_INVALID_CLASS,
actual: JVMDI_ERROR_NULL_POINTER (100)
======================================================================
- relates to
-
JDK-4733472 JDI: nsk.jdi.VirtualMachine.redefineClasses throws unspecified InternalException
- Closed