summaryrefslogtreecommitdiff
path: root/test/files/run/classfile-format-51.scala
diff options
context:
space:
mode:
authorSom Snytt <som.snytt@gmail.com>2015-02-20 16:46:00 -0800
committerSom Snytt <som.snytt@gmail.com>2015-02-20 17:22:33 -0800
commit80362f9fc2dfa1c9d5560ad2aa8b2eef320e5fd6 (patch)
tree97a955f7778dfd4fc01b758d4d62cf35beb692e3 /test/files/run/classfile-format-51.scala
parent178e8df9b6a91375a6162721a0cbc2d90bcc7451 (diff)
downloadscala-80362f9fc2dfa1c9d5560ad2aa8b2eef320e5fd6.tar.gz
scala-80362f9fc2dfa1c9d5560ad2aa8b2eef320e5fd6.tar.bz2
scala-80362f9fc2dfa1c9d5560ad2aa8b2eef320e5fd6.zip
SI-9167 Clarify ScalaVersion parsing
Probably it was unintended to accept "2.." and "2.-11.7". This commit makes it a bit more regular and also accepts arbitrary text after the dash in the build string, including newlines. Since the number parts must be numbers, accept only digits. That also disallows "2.+11.7", which could be misconstrued as some sort of range. As before, the special build string prefixes "rc" and "m" are case-insensitive, but "FINAL" is not.
Diffstat (limited to 'test/files/run/classfile-format-51.scala')
-rw-r--r--test/files/run/classfile-format-51.scala1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/files/run/classfile-format-51.scala b/test/files/run/classfile-format-51.scala
index 24b1ee8397..4351757a64 100644
--- a/test/files/run/classfile-format-51.scala
+++ b/test/files/run/classfile-format-51.scala
@@ -1,6 +1,5 @@
import java.io.{File, FileOutputStream}
-import scala.tools.nsc.settings.ScalaVersion
import scala.tools.partest._
import scala.tools.asm
import asm.{AnnotationVisitor, ClassWriter, FieldVisitor, Handle, MethodVisitor, Opcodes}