-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.2
-
generic
-
solaris_8
Script started on Wed Aug 28 18:39:33 2002
frog:~/workspaces/test/New36 $ cat -n T.java
1 class KK {
2
3 static void gus(String arg1) {
4 }
5 public static void main(String[] args) {
6 gus(KK); // this works
7 System.out.println(KK); // this doesn't
8 }
9 }
frog:~/workspaces/test/New36 $ newjavac T.java
/usr/java1.4/bin/javac -J-Xbootclasspath/p:/net/frog/gafter/gjc-work/generics/build/bootstrap2 -bootclasspath /net/frog/gafter/gjc-work/generics/build/collections2:/usr/java1.4/jre/lib/stubs.jar:/usr/java1.4/jre/lib/rt.jar -classpath . T.java
T.java:6: cannot resolve symbol
symbol : variable KK
location: class KK
gus(KK); // this works
^
T.java:7: cannot resolve symbol
symbol : variable KK
location: class KK
System.out.println(KK); // this doesn't
^
An exception has occurred in the compiler (1.4.0-rc). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: unexpected kind: 256 in tree System.out.println
at com.sun.tools.javac.v8.comp.Attr.checkId(Attr.java:1697)
at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java:1478)
at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java:903)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:227)
at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java:878)
at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java:734)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:234)
at com.sun.tools.javac.v8.comp.Attr.visitExec(Attr.java:663)
at com.sun.tools.javac.v8.tree.Tree$Exec.accept(Tree.java:654)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:262)
at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:461)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:476)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.visitMethodDef(Attr.java:404)
at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java:422)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:2005)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1950)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1914)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:345)
at com.sun.tools.javac.v8.Main.compile(Main.java:480)
at com.sun.tools.javac.Main.compile(Main.java:33)
at com.sun.tools.javac.Main.main(Main.java:24)
frog:~/workspaces/test/New36 $ exit
exit
script done on Wed Aug 28 18:39:50 2002
frog:~/workspaces/test/New36 $ cat -n T.java
1 class KK {
2
3 static void gus(String arg1) {
4 }
5 public static void main(String[] args) {
6 gus(KK); // this works
7 System.out.println(KK); // this doesn't
8 }
9 }
frog:~/workspaces/test/New36 $ newjavac T.java
/usr/java1.4/bin/javac -J-Xbootclasspath/p:/net/frog/gafter/gjc-work/generics/build/bootstrap2 -bootclasspath /net/frog/gafter/gjc-work/generics/build/collections2:/usr/java1.4/jre/lib/stubs.jar:/usr/java1.4/jre/lib/rt.jar -classpath . T.java
T.java:6: cannot resolve symbol
symbol : variable KK
location: class KK
gus(KK); // this works
^
T.java:7: cannot resolve symbol
symbol : variable KK
location: class KK
System.out.println(KK); // this doesn't
^
An exception has occurred in the compiler (1.4.0-rc). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.AssertionError: unexpected kind: 256 in tree System.out.println
at com.sun.tools.javac.v8.comp.Attr.checkId(Attr.java:1697)
at com.sun.tools.javac.v8.comp.Attr.visitSelect(Attr.java:1478)
at com.sun.tools.javac.v8.tree.Tree$Select.accept(Tree.java:903)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:227)
at com.sun.tools.javac.v8.comp.Attr.visitApply(Attr.java:878)
at com.sun.tools.javac.v8.tree.Tree$Apply.accept(Tree.java:734)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribExpr(Attr.java:234)
at com.sun.tools.javac.v8.comp.Attr.visitExec(Attr.java:663)
at com.sun.tools.javac.v8.tree.Tree$Exec.accept(Tree.java:654)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.attribStats(Attr.java:262)
at com.sun.tools.javac.v8.comp.Attr.visitBlock(Attr.java:461)
at com.sun.tools.javac.v8.tree.Tree$Block.accept(Tree.java:476)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.visitMethodDef(Attr.java:404)
at com.sun.tools.javac.v8.tree.Tree$MethodDef.accept(Tree.java:422)
at com.sun.tools.javac.v8.comp.Attr.attribTree(Attr.java:212)
at com.sun.tools.javac.v8.comp.Attr.attribStat(Attr.java:246)
at com.sun.tools.javac.v8.comp.Attr.attribClassBody(Attr.java:2005)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1950)
at com.sun.tools.javac.v8.comp.Attr.attribClass(Attr.java:1914)
at com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:345)
at com.sun.tools.javac.v8.Main.compile(Main.java:480)
at com.sun.tools.javac.Main.compile(Main.java:33)
at com.sun.tools.javac.Main.main(Main.java:24)
frog:~/workspaces/test/New36 $ exit
exit
script done on Wed Aug 28 18:39:50 2002
- duplicates
-
JDK-4728559 compiler crash after resolution error
-
- Resolved
-