Created
April 26, 2010 19:38
-
-
Save maxaf/379776 to your computer and use it in GitHub Desktop.
Scala oops
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.8.0.Beta1-prerelease (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_17). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> class Foo { | |
| def bar[T]()(implicit man: Manifest[T]) = { man.erasure.getSimpleName } | |
| } | |
defined class Foo | |
scala> (new Foo).bar[Foo]() | |
java.lang.InternalError: Malformed class name | |
at java.lang.Class.getSimpleName(Class.java:1133) | |
at Foo.bar(<console>:5) | |
at .<init>(<console>:6) | |
at .<clinit>(<console>) | |
at RequestResult$.<init>(<console>:4) | |
at RequestResult$.<clinit>(<console>) | |
at RequestResult$scala_repl_result(<console>) | |
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$Request$$anonfun$loadAndRun$1$$anonfun$apply$13.apply(Interpreter.scala:827) | |
at scala.tools.nsc.Interpreter$Request$$anonfun$loadAndRun$1$$anonfun$apply$13.apply(Interpreter.scala:827) | |
at scala.util.control.Exception$Catch.apply(Exception.scala:79) | |
at scala.tools.nsc.Interpreter$Request$$anonfun$loadAndRun$1.apply(Interpreter.scala:826) | |
at scala.tools.nsc.Interpreter$Request$$anonfun$loadAndRun$1.apply(Interpreter.scala:826) | |
at scala.util.control.Exception$Catch.apply(Exception.scala:79) | |
at scala.tools.nsc.Interpreter$Request.loadAndRun(Interpreter.scala:825) | |
at scala.tools.nsc.Interpreter.interpret(Interpreter.scala:467) | |
at scala.tools.nsc.Interpreter.interpret(Interpreter.scala:457) | |
at scala.tools.nsc.InterpreterLoop.interpretStartingWith(InterpreterLoop.scala:391) | |
at scala.tools.nsc.InterpreterLoop.command(InterpreterLoop.scala:367) | |
at scala.tools.nsc.InterpreterLoop.processLine$1(InterpreterLoop.scala:249) | |
at scala.tools.nsc.InterpreterLoop.repl(InterpreterLoop.scala:267) | |
at scala.tools.nsc.InterpreterLoop.main(InterpreterLoop.scala:439) | |
at scala.tools.nsc.MainGenericRunner$.createLoop$1(MainGenericRunner.scala:118) | |
at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:143) | |
at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala) | |
scala> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment