-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0
-
1.2beta3
-
sparc
-
solaris_2.5
-
Not verified
Name: szC45993 Date: 12/11/97
The vm compatibility test (see source below) uses interface which points on
itself as on his superclass. This test crashes the jvm:
novo7% /export/ld14/java/dest/jdk1.2Z/solaris/bin/java -verify javasoft.sqe.tests.vm.constantpool.ClassInterf011.ClassInterf01102.ClassInterf01102
Segmentation Fault
novo7%
However, this test works fine for jdk1.1.5.
SOURCE:
--------------------- ClassInterf01102.java
//File: %Z%%M% %I% %E%
//Copyright %G% Sun Microsystems, Inc. All Rights Reserved
package javasoft.sqe.tests.vm.constantpool.ClassInterf011.ClassInterf01102;
import java.io.PrintStream;
public class ClassInterf01102 {
public static int run(String argv[], PrintStream out) {
try {
Class badClass = Class.forName("javasoft.sqe.tests.vm.constantpool.ClassInterf011.ClassInterf01102.ClassInterf01102i");
out.println("test ClassInterf01102 failed to reject bad classfile ClassInterf01102i");
} catch (Throwable e) {
out.println("test ClassInterf01102 exception:"+e.toString()+" while loading bad classfile ClassInterf01102i");
return 0;
}
return 2;
}
public static void main(String args[]) {
System.exit(run(args, System.out) + 95/*STATUS_TEMP*/);
}
}
--------------------- ClassInterf01102i.jasm
//File: %Z%%M% %I% %E%
//Copyright %G% Sun Microsystems, Inc. All Rights Reserved
package javasoft/sqe/tests/vm/constantpool/ClassInterf011/ClassInterf01102;
abstract interface ClassInterf01102i
extends ClassInterf01102i
{
// Compiled from "ClassInterf01102i.java"
// Compiler version 3.45;
public abstract Method mtd:"()V";
} // end Class ClassInterf01102i
---------------------
Hook 5(hook5): test
======================================================================