Aladdin - Scala Bugtracking
[#114] project: documentation priority: medium category: bug
submitter assigned to status date submitted
Erik Vincent fixed 2003-09-09 15:03:18.0
subject ScalaDoc crashes on type selector with inner class
code
class J[A] {
    type aT = J[A]#T;  
    class T{} 
}
what happened
~/scala/bin/scaladoc j.scala 
Exception in thread "main" scalac.ApplicationError
        at scalac.util.Debug.abort(Debug.java:53)
        at scaladoc.DocModule.apply(DocModule.java:119)
        at scaladoc.HTMLGeneratorPhase.apply(HTMLGeneratorPhase.java:46)
        at scalac.Global.compile(Global.java:293)
        at scalac.Global.compile(Global.java:266)
        at scaladoc.Main.main(Main.java:40)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at scaladoc.DocModule.apply(DocModule.java:117)
        ... 4 more
Caused by: java.lang.NullPointerException
        at scalac.symtab.Type.typeRef(Type.java:169)
        at scaladoc.HTMLGenerator.cleanPrefix(HTMLGenerator.java:752)
        at scaladoc.SymbolTablePrinter.getTypeToPrintForPrefix(SymbolTablePrinter.java:633)
        at scaladoc.SymbolTablePrinter.printPrefix(SymbolTablePrinter.java:660)
        at scaladoc.SymbolTablePrinter.printCommonPart(SymbolTablePrinter.java:568)
        at scaladoc.SymbolTablePrinter.printType0(SymbolTablePrinter.java:446)
        at scaladoc.SymbolTablePrinter.printType0(SymbolTablePrinter.java:502)
        at scaladoc.SymbolTablePrinter.printType(SymbolTablePrinter.java:468)
        at scaladoc.SymbolTablePrinter.printSymbolType(SymbolTablePrinter.java:262)
        at scaladoc.SymbolTablePrinter.printSignature(SymbolTablePrinter.java:287)
        at scaladoc.HTMLGenerator.addMemberDetail(HTMLGenerator.java:643)
        at scaladoc.HTMLGenerator.addMemberDetail(HTMLGenerator.java:623)
        at scaladoc.HTMLGenerator.createPages(HTMLGenerator.java:387)
        at scaladoc.HTMLGenerator.addMemberDetail(HTMLGenerator.java:610)
        at scaladoc.HTMLGenerator.createPages(HTMLGenerator.java:387)
        at scaladoc.HTMLGenerator.apply(HTMLGenerator.java:278)
        at scaladoc.HTMLGenerator.apply(HTMLGenerator.java:302)
        at scaladoc.StandardDocModule.apply(StandardDocModule.java:44)
        at scaladoc.StandardDocModule.apply(StandardDocModule.java:51)
        ... 9 more
what expected No crash, just an html file.
[back to overview]
Changes of this bug report
Vincent  edited on  2003-09-09 17:36:18.0