Name: skT88420 Date: 12/06/99
java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-I)
Java HotSpot (TM) Client VM (build 1.3-I, interpreted mode)
javac test.java
An exception has occurred in the compiler. (v0.8)
Please file a bug report by sending your program and the following diagnostic to
###@###.###
Thank you.
java.lang.NullPointerException
at
com.sun.tools.javac.v8.comp.TransInner.accessClass(TransInner.java:555)
at
com.sun.tools.javac.v8.comp.TransInner.accessSymbol(TransInner.java:456)
at com.sun.tools.javac.v8.comp.TransInner.access(TransInner.java:645)
at com.sun.tools.javac.v8.comp.TransInner._case(TransInner.java:1535)
at com.sun.tools.javac.v8.tree.Tree$Select.visit(Tree.java:813)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at com.sun.tools.javac.v8.comp.TransInner._case(TransInner.java:1448)
at com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:672)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.tree.TreeTranslator._case(TreeTranslator.java:125)
at com.sun.tools.javac.v8.tree.Tree$VarDef.visit(Tree.java:424)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:54)
at
com.sun.tools.javac.v8.tree.TreeTranslator._case(TreeTranslator.java:130)
at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:443)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.tree.TreeTranslator._case(TreeTranslator.java:178)
at com.sun.tools.javac.v8.tree.Tree$Try.visit(Tree.java:561)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:54)
at
com.sun.tools.javac.v8.tree.TreeTranslator._case(TreeTranslator.java:130)
at com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:443)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.tree.TreeTranslator._case(TreeTranslator.java:119)
at com.sun.tools.javac.v8.comp.TransInner._case(TransInner.java:1357)
at com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:399)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at com.sun.tools.javac.v8.comp.TransInner._case(TransInner.java:1269)
at com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:365)
at
com.sun.tools.javac.v8.tree.TreeTranslator.translate(TreeTranslator.java:44)
at
com.sun.tools.javac.v8.comp.TransInner.translate(TransInner.java:1221)
at
com.sun.tools.javac.v8.comp.TransInner.translateTopLevelClass(TransInner.java:1563)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:361)
at com.sun.tools.javac.v8.Main.compile(Main.java:266)
at com.sun.tools.javac.Main.main(Main.java:28)
lonepeak:/home/sandeepk/testarea 59 % uname -a
SunOS lonepeak 5.8 Beta sun4u sparc SUNW,Ultra-1
lonepeak:/home/sandeepk/testarea 60 % cat test.java
import java.awt.*;
public class test {
public static void main(String[] args) {
Component c = null;
try {
Container cont = Toolkit.getNativeContainer(c);
} catch (Exception e) {
System.out.println("Exception Caught" );
}
}
}
(Review ID: 98702)
======================================================================
- duplicates
-
JDK-4277524 crash when accessing protected method from non-extending class
- Resolved