From ac61e341216c2c61e29c74a8c3c27e915d479925 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 27 Dec 2012 11:41:22 -0800 Subject: 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. --- test/files/run/t6194.check | 1 + test/files/run/t6194.scala | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 test/files/run/t6194.check create mode 100644 test/files/run/t6194.scala (limited to 'test') 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) + } +} -- cgit v1.2.3