Created
May 29, 2017 08:14
-
-
Save lihaoyi/76929bfe2120732ebc9357abe7dcc92b to your computer and use it in GitHub Desktop.
SBT ClasspathFilter can't load java.lang.String classfiles?
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
lihaoyi test$ tree | |
. | |
└── Foo.scala | |
0 directories, 1 file | |
lihaoyi test$ cat Foo.scala | |
object Main{ | |
def main(args: Array[String]): Unit = { | |
println(getClass.getClassLoader.getResourceAsStream("java/lang/String.class")) | |
println(getClass.getClassLoader.getClass) | |
println(Thread.currentThread().getContextClassLoader.getResourceAsStream("java/lang/String.class")) | |
println(Thread.currentThread().getContextClassLoader.getClass) | |
} | |
} | |
lihaoyi test$ sbt run | |
[info] Loading global plugins from /Users/lihaoyi/.sbt/0.13/plugins | |
[info] Set current project to test (in build file:/Users/lihaoyi/Dropbox/Workspace/test/) | |
[info] Updating {file:/Users/lihaoyi/Dropbox/Workspace/test/}test... | |
[info] Resolving org.fusesource.jansi#jansi;1.4 ... | |
[info] Done updating. | |
[info] Compiling 1 Scala source to /Users/lihaoyi/Dropbox/Workspace/test/target/scala-2.10/classes... | |
[info] Running Main | |
sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream@18e38ff2 | |
class sbt.classpath.ClasspathUtilities$$anon$1 | |
null | |
class sbt.classpath.ClasspathFilter | |
[success] Total time: 2 s, completed 29 May, 2017 4:14:11 PM | |
lihaoyi test$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment