JDK-4423702 : JCK13a: Four vm/instr tests fail with java.lang.NoSuchFieldError
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS:
    generic,linux,windows_95,windows_2000 generic,linux,windows_95,windows_2000
  • CPU: x86,sparc
  • Submitted: 2001-03-09
  • Updated: 2001-03-30
  • Resolved: 2001-03-30
Related Reports
Duplicate :  
Description

Name: iaR10016			Date: 03/09/2001



Failing Test:
=============
vm/instr/putfield/putfield010/putfield01001m1/putfield01001m1.html
vm/instr/putfield/putfield010/putfield01002m1/putfield01002m1.html
vm/instr/putstatic/putstatic010/putstatic01001m1/putstatic01001m1.html
vm/instr/putstatic/putstatic009/putstatic00901m1/putstatic00901m1.html

JCK :
=====
JCK1.3a

Test source location:
====================
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putfield/putfield010/putfield01001m1/putfield01001m1.java
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putfield/putfield010/putfield01001m1/putfield01001m1n.jasm
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putfield/putfield010/putfield01002m1/putfield01002m1.java
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putfield/putfield010/putfield01002m1/putfield01002m1n.jasm
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putstatic/putstatic010/putstatic01001m1/putstatic01001m1.java
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putstatic/putstatic010/putstatic01001m1/putstatic01001m1n.jasm
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putstatic/putstatic009/putstatic00901m1/putstatic00901m1.java
/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/tests/vm/instr/putstatic/putstatic009/putstatic00901m1/putstatic00901m1n.jasm

Platforms:
=============
Windows 2000
Windows 98
Windows 95
Windows ME
Redhat Linux 6.2
Caldera OpenLinux

JDK, switches Info:
===================
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b54)
Java HotSpot(TM) Client VM (build 1.4beta-B54, mixed mode)

The bug is reproducible with all switches

jtr file location:
==================
/net/jtgb4u4c.eng/export/sail7/JavaWebServer1.1.3/public_html/QA/merlin/b54/jck13a/linux/redhat6.2_single_gnome_client_linux-13/workDir/vm/instr/invokevirtual/invokevirtual018/invokevirtual01803m1/invokevirtual01803m1.jtr

How to reproduce:
====================
#!/bin/sh

JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
JCK=/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a
CLASSPATH=$JCK/classes:$JCK/javatest.jar
export CLASSPATH

executeClass="javasoft.sqe.tests.vm.instr.putstatic.putstatic009.putstatic00901m1.putstatic00901m1"

$JAVA_HOME/bin/java -version
$JAVA_HOME/bin/java ${executeClass}
RESULT="$?"

if [ $RESULT = 95 ]; then
 echo Test passed
elif [ $RESULT = 97 ]; then
 echo Test failed
else
 echo Result is $RESULT
fi

Test output:
=============
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b54)
Java HotSpot(TM) Client VM (build 1.4beta-B54, mixed mode)

Unexpected exception on runMethod.invoke() invocation: java.lang.NoSuchFieldError: v1
Test failed

Specific Machine Info:
=====================
Hostname: linux-22

Additional JCK related info:
============================
URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto
JCK FAQ: http://javaweb.eng/jck/usr/ConformanceTesting/JCKconformanceFaq.html

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

Comments
EVALUATION from the JVM specification: NoSuchFieldError: A symbolic reference has been encountered that refers to a specific field of a specific class or interface, but the class or interface does not contain a field of that name. vm/instr/putfield/putfield010/putfield01001m1/putfield01001m1.html Expected: LinkageError Generated: NoSuchFieldError The NoSuchFieldError appears to be correct, in that the .jasm file references a non-existant field. [Test Error] vm/instr/putfield/putfield010/putfield01002m1/putfield01002m1.html Expected: LinkageError Generated: NoSuchFieldError The NoSuchFieldError appears to be correct, in that the .jasm file references a field with a different datatype. [Test Error] vm/instr/putstatic/putstatic010/putstatic01001m1/putstatic01001m1.html Expected: LinkageError Generated: NoSuchFieldError The NoSuchFieldError appears to be correct, in that the .jasm file references an undefined static field. [Test Error] vm/instr/putstatic/putstatic009/putstatic00901m1/putstatic00901m1.html Expected: LinkageError Generated: NoSuchFieldError The NoSuchFieldError appears to be correct, in that the .jasm file references an undefined static field. [Test Error] robertg@east 2001-03-21 All listed tests are valid. These tests are failing due to incorrect behavior of java.lang.reflect.Method.invoke() method (bug report #4428861). Therefore this bug may be closed as duplicate of 4428861.
11-06-2004