Skip to content

Instantly share code, notes, and snippets.

@lrytz
Created September 16, 2014 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lrytz/82e3f9dab4f1afc48c5b to your computer and use it in GitHub Desktop.
Save lrytz/82e3f9dab4f1afc48c5b to your computer and use it in GitHub Desktop.
lucmac:sandbox luc$ scalac -version
Scala compiler version 2.11.2 -- Copyright 2002-2013, LAMP/EPFL
lucmac:sandbox luc$ cat Test.scala
package android {
package os {
trait Parcelable {
trait Creator[T]
}
}
}
object C extends android.os.Parcelable {
def foo = 0
}
lucmac:sandbox luc$ scalac Test.scala
lucmac:sandbox luc$ scala -e "C"
java.lang.ClassNotFoundException: C$$
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment