Closed
Description
attached script fails, failure mode depends on scala version:
scala 2.9.2: ClassNotFoundException: Main(...) at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:103)
scala 2.10.0-M7: (notes: delete line #2 of attached script for this version; on linux, hangs, or possibly fails after uncharacteristically long delay):
error:
while compiling: /Users/philwalk/Workspaces/juno-workspace/cse.spooler.gui/./listItems.sc
during phase: typer
library version: version 2.10.0-M7
compiler version: version 2.10.0-M7
reconstructed args: -Xscript Main -d /var/folders/vy/l3zbb71j15lbnmysddxfspz00000gn/T/scalascript6524079972914240372.tmp
last tree to typer: Select(This(anonymous class $anon), Item)
symbol: object Item (flags: <module> <synthetic> <triedcooking> private)
symbol definition: private object Item
tpe: this.Item.type
symbol owners: object Item -> anonymous class $anon -> method main -> object Main -> package <empty>
context owners: method readResolve -> object Item -> anonymous class $anon -> method main -> object Main -> package <empty>
== Enclosing template or block ==
DefDef( // private def readResolve(): Object in object Item
<method> private <synthetic>
"readResolve"
[]
List(Nil)
<tpt> // tree.tpe=Object
$anon.this."Item" // private object Item, tree.tpe=this.Item.type
)
== Expanded type of tree ==
TypeRef(
pre = ThisType(anonymous class $anon)
TypeSymbol(
class Item extends AbstractFunction3[String,String,String,this.Item] with Serializable
)
)
uncaught exception during compilation: java.lang.StackOverflowError
Metadata
Metadata
Assignees
Labels
No labels