davidB/maven-scala-plugin — Issue #73: Can't instantiate case classes in the console
Author: zeedunk
Created: 2011-12-17 00:20:24+00:00
State: open

Here's what shows in my console when I attempt it.

Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_29).
Type in expressions to have them evaluated.
Type :help for more information.

scala> case class DatCase(optIn: Option[Boolean])
defined class DatCase

scala> val dc = DatCase(None)
java.lang.AbstractMethodError
at scala.runtime.ScalaRunTime$._toString(ScalaRunTime.scala:175)
at DatCase.toString(:7)
at scala.runtime.ScalaRunTime$.inner$1(ScalaRunTime.scala:329)
at scala.runtime.ScalaRunTime$.stringOf(ScalaRunTime.scala:334)
at scala.runtime.ScalaRunTime$.replStringOf(ScalaRunTime.scala:341)
at .(:14)
at .()
at $print()
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:597)
at scala.tools.nsc.interpreter.IMain$ReadEvalPrint.call(IMain.scala:704)
at scala.tools.nsc.interpreter.IMain$Request$$anonfun$14.apply(IMain.scala:920)
at scala.tools.nsc.interpreter.Line$$anonfun$1.apply$mcV$sp(Line.scala:43)
at scala.tools.nsc.io.package$$anon$2.run(package.scala:25)
at java.lang.Thread.run(Thread.java:680)