summaryrefslogtreecommitdiff
path: root/test/files/run/t7398.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-06-09 12:28:23 -0700
committerJason Zaugg <jzaugg@gmail.com>2013-06-09 12:28:23 -0700
commit076e37bb67001fe3ca1e120c9c3ac63c1de5ea01 (patch)
tree954e62ce0998d6d69fd3a528521e866b757a7480 /test/files/run/t7398.scala
parenta9972cc7e851882b5e0b4d6d97ad951b012167c0 (diff)
parentac4e3ca19246ae3d983f99607b865c5ed3acb2b9 (diff)
downloadscala-076e37bb67001fe3ca1e120c9c3ac63c1de5ea01.tar.gz
scala-076e37bb67001fe3ca1e120c9c3ac63c1de5ea01.tar.bz2
scala-076e37bb67001fe3ca1e120c9c3ac63c1de5ea01.zip
Merge pull request #2606 from JamesIry/2.10.x_classfile_52
Test for reading JDK 8 (classfile format 52) class files.
Diffstat (limited to 'test/files/run/t7398.scala')
-rw-r--r--test/files/run/t7398.scala11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/files/run/t7398.scala b/test/files/run/t7398.scala
index e4090f7db3..dd59697b71 100644
--- a/test/files/run/t7398.scala
+++ b/test/files/run/t7398.scala
@@ -3,14 +3,11 @@ import scala.tools.partest._
object Test extends CompilerTest {
import global._
- def javaVersion = scala.util.Properties.javaVersion
- def isJavaEight = javaVersion startsWith "1.8"
// This way we auto-pass on non-java8 since there's nothing to check
- override lazy val units = {
- val res: List[CompilationUnit] = if (isJavaEight) javaCompilationUnits(global)(defaultMethodSource) else Nil
- val word = if (isJavaEight) "Attempting" else "Skipping"
- log(s"$word java8-specific test under java version $javaVersion")
- res
+ override lazy val units: List[CompilationUnit] = testUnderJavaAtLeast("1.8") {
+ javaCompilationUnits(global)(defaultMethodSource)
+ } otherwise {
+ Nil
}
private def defaultMethodSource = """