Aladdin - Scala Bugtracking
[#1100] project: interpreter priority: low category: bug
submitter assigned to status date submitted
Nikolay Martin fixed 2007-05-11 11:32:59.0
subject [contrib #466] Interpreter crash
code
scala> def foo:Pair[String, Int] = ("", 0)

Exception in thread "main" java.lang.StackOverflowError
        at scala.tools.nsc.symtab.Symbols$TypeSymbol.isAliasType(Symbols.scala:1146)
        at scala.tools.nsc.symtab.Types$TypeRef.normalize(Types.scala:1203)
        at scala.tools.nsc.symtab.Definitions$definitions$.isFunctionType(Definitions.scala:288)
        at scala.tools.nsc.symtab.Types$TypeRef.toString(Types.scala:1260)
        at java.lang.String.valueOf(String.java:2827)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
        at scala.tools.nsc.symtab.Types$TypeRef.normalize(Types.scala:1209)
        at scala.tools.nsc.symtab.Definitions$definitions$.isFunctionType(Definitions.scala:288)
        at scala.tools.nsc.symtab.Types$TypeRef.toString(Types.scala:1260)
        at java.lang.String.valueOf(String.java:2827)
        at java.lang.StringBuffer.append(StringBuffer.java:219)
        at scala.tools.nsc.symtab.Types$TypeRef.normalize(Types.scala:1209)
        at scala.tools.nsc.symtab.Definitions$definitions$.isFunctionType(Definitions.scala:288)
        at scala.tools.nsc.symtab.Types$TypeRef.toString(Types.scala:1260)
....

what happened
A StackOverflowError is thrown.
what expected No exception to be thrown.
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-05-11 11:34:25.0
Stephane  edited on  2007-05-11 12:02:36.0
works in rev 10997 (fails with RC1)