diff options
author | Paul Phillips <paulp@improving.org> | 2012-12-27 11:41:22 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-12-27 11:48:54 -0800 |
commit | ac61e341216c2c61e29c74a8c3c27e915d479925 (patch) | |
tree | 4b429f319ce2287b33647a1c8f90947779785f16 /test | |
parent | 1284c3c6f38cc419a0a39fd68b3d5cf81b36b1a5 (diff) | |
download | scala-ac61e341216c2c61e29c74a8c3c27e915d479925.tar.gz scala-ac61e341216c2c61e29c74a8c3c27e915d479925.tar.bz2 scala-ac61e341216c2c61e29c74a8c3c27e915d479925.zip |
SI-6194, repl crash.
Always a bad idea to use replaceAll on unknown strings,
as we saw here when windows classpaths arrived containing
escape-requiring backslashes.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t6194.check | 1 | ||||
-rw-r--r-- | test/files/run/t6194.scala | 8 |
2 files changed, 9 insertions, 0 deletions
diff --git a/test/files/run/t6194.check b/test/files/run/t6194.check new file mode 100644 index 0000000000..b325f479d7 --- /dev/null +++ b/test/files/run/t6194.check @@ -0,0 +1 @@ +C:\FooBar\Java\includes\*.jar diff --git a/test/files/run/t6194.scala b/test/files/run/t6194.scala new file mode 100644 index 0000000000..ced3259427 --- /dev/null +++ b/test/files/run/t6194.scala @@ -0,0 +1,8 @@ +import scala.tools.nsc.util._ + +object Test { + def main(args: Array[String]): Unit = { + val cp = ClassPath.expandPath("""C:\FooBar\Java\includes\*.jar""") mkString java.io.File.pathSeparator + println(cp) + } +} |