Skip to content

Commit

Permalink
SI-7398 Enable test for Java 8 source parser under Java 8
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
retronym committed Sep 9, 2013
1 parent bf0f9da commit a1796aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/files/run/t7398.scala
Expand Up @@ -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 = """
Expand Down

0 comments on commit a1796aa

Please sign in to comment.