summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-09-09 22:32:28 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-09-10 01:34:00 +0200
commita1796aa5ed280203c1bfc086ee5a368ae628611d (patch)
tree4bfa8724a10fbd12a134a56cbb38d59be8041cd2 /test
parentbf0f9da50983941b8575ffae284d9c90de886020 (diff)
downloadscala-a1796aa5ed280203c1bfc086ee5a368ae628611d.tar.gz
scala-a1796aa5ed280203c1bfc086ee5a368ae628611d.tar.bz2
scala-a1796aa5ed280203c1bfc086ee5a368ae628611d.zip
SI-7398 Enable test for Java 8 source parser under Java 8
There is no need to skip it as it only depends on our changes to our JavaParser, and not on any bytecode features of Java 8.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/t7398.scala6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/files/run/t7398.scala b/test/files/run/t7398.scala
index dd59697b71..493c4dcf40 100644
--- a/test/files/run/t7398.scala
+++ b/test/files/run/t7398.scala
@@ -3,11 +3,9 @@ import scala.tools.partest._
object Test extends CompilerTest {
import global._
- // This way we auto-pass on non-java8 since there's nothing to check
- override lazy val units: List[CompilationUnit] = testUnderJavaAtLeast("1.8") {
+ override lazy val units: List[CompilationUnit] = {
+ // This test itself does not depend on JDK8.
javaCompilationUnits(global)(defaultMethodSource)
- } otherwise {
- Nil
}
private def defaultMethodSource = """