Name: dkC59003 Date: 09/21/99
HotSpot 2.0beta-E crashes while executing the test nsk/regression/b4257281
in compiled mode. -Xint and -Xmixed are OK.
Both 2.0beta-D and 2.0beta-C produce the same result whereas 2.0beta-B throws
NoSuchFieldError.
The test revealed a bug in Kestrel (see the bugreport #4271096).
Log and test sources follow:
$ java -version
java version "1.2.2"
Java(TM) HotSpot Server VM (2.0beta, mixed mode, build E)
$ java -Xcomp b4257281
[1] + Done(139) ?
1287 Segmentation violation d:/jdk1.2.2/bin/java
------------------------------------------------------------- b4257281_p.java
package p;
interface b4257281_p {
static public int fld[] = {5,10};
}
------------------------------------------------------------- b4257281_c.java
package p;
public interface b4257281_c extends b4257281_p {}
------------------------------------------------------------- b4257281.java
import java.io.PrintStream;
import p.b4257281_c;
public class b4257281 implements b4257281_c {
public static void main(String argv[]) {
System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/);
}
public static int run(String argv[], PrintStream out) {
b4257281 b = new b4257281();
if (b.fld[0] == 5 && b4257281_c.fld[0] == 5) {
return 0/*STATUS_PASSED*/;
}
return 2/*STATUS_FAILED*/;
}
}
======================================================================
- relates to
-
JDK-4271096 Field resolution does not look up the interface hierarchy
-
- Closed
-
-
JDK-4257281 Field resolution does not look up the interface hierarchy
-
- Closed
-