-
Bug
-
Resolution: Fixed
-
P2
-
5.0
-
b48
-
generic
-
generic
apt -print -nocompile test.java //for class below
public class test<T>
{
public test(){}
}
sqetools1:/export/tools_local/tools/src/javam/options/print 517 % apt -print -nocompile test.java
public class test {
An exception has occurred in the compiler (1.5.0-auto-tiger). 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.ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol
at com.sun.tools.javac.code.Symbol.enclClass(Symbol.java:229)
at com.sun.tools.apt.mirror.declaration.DeclarationImpl.getPosition(DeclarationImpl.java:146)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:38)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:33)
at java.util.TreeMap.compare(TreeMap.java:1093)
at java.util.TreeMap.put(TreeMap.java:465)
at java.util.TreeSet.add(TreeSet.java:210)
at com.sun.mirror.util.SourceOrderDeclScanner.visitClassDeclaration(SourceOrderDeclScanner.java:126)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:74)
at com.sun.tools.apt.comp.PrintAP.process(PrintAP.java:384)
at com.sun.tools.apt.comp.Apt.main(Apt.java:220)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:419)
at com.sun.tools.apt.main.Main.compile(Main.java:942)
at com.sun.tools.apt.main.Main.compile(Main.java:830)
at com.sun.tools.apt.Main.compile(Main.java:41)
at com.sun.tools.apt.Main.main(Main.java:32)
public class test<T>
{
public test(){}
}
sqetools1:/export/tools_local/tools/src/javam/options/print 517 % apt -print -nocompile test.java
public class test {
An exception has occurred in the compiler (1.5.0-auto-tiger). 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.ClassCastException: com.sun.tools.javac.code.Symbol$TypeSymbol
at com.sun.tools.javac.code.Symbol.enclClass(Symbol.java:229)
at com.sun.tools.apt.mirror.declaration.DeclarationImpl.getPosition(DeclarationImpl.java:146)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:38)
at com.sun.mirror.util.SourceOrderDeclScanner$SourceOrderComparator.compare(SourceOrderDeclScanner.java:33)
at java.util.TreeMap.compare(TreeMap.java:1093)
at java.util.TreeMap.put(TreeMap.java:465)
at java.util.TreeSet.add(TreeSet.java:210)
at com.sun.mirror.util.SourceOrderDeclScanner.visitClassDeclaration(SourceOrderDeclScanner.java:126)
at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:74)
at com.sun.tools.apt.comp.PrintAP.process(PrintAP.java:384)
at com.sun.tools.apt.comp.Apt.main(Apt.java:220)
at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:419)
at com.sun.tools.apt.main.Main.compile(Main.java:942)
at com.sun.tools.apt.main.Main.compile(Main.java:830)
at com.sun.tools.apt.Main.compile(Main.java:41)
at com.sun.tools.apt.Main.main(Main.java:32)