aboutsummaryrefslogtreecommitdiffstats
path: root/org.jacoco.core.test
diff options
context:
space:
mode:
authorEvgeny Mandrikov <Godin@users.noreply.github.com>2016-12-15 21:22:14 +0100
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2016-12-15 21:22:14 +0100
commit2bc56b24b66641042e8fdacf846826ffdbdc1a36 (patch)
treed2bb53219e1ec2a081c1c0b5f8fceeb502916130 /org.jacoco.core.test
parent055e8e4c209673f96581b723fcc6295852bf997e (diff)
downloadplatform_external_jacoco-2bc56b24b66641042e8fdacf846826ffdbdc1a36.tar.gz
platform_external_jacoco-2bc56b24b66641042e8fdacf846826ffdbdc1a36.tar.bz2
platform_external_jacoco-2bc56b24b66641042e8fdacf846826ffdbdc1a36.zip
Fix build failure with JDK 9 EA b148 (#470)
Diffstat (limited to 'org.jacoco.core.test')
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/runtime/URLStreamHandlerRuntimeTest.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/runtime/URLStreamHandlerRuntimeTest.java b/org.jacoco.core.test/src/org/jacoco/core/runtime/URLStreamHandlerRuntimeTest.java
index 0849f77a..1135548f 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/runtime/URLStreamHandlerRuntimeTest.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/runtime/URLStreamHandlerRuntimeTest.java
@@ -11,6 +11,9 @@
*******************************************************************************/
package org.jacoco.core.runtime;
+import org.junit.Assume;
+import org.junit.BeforeClass;
+
/**
* Unit tests for {@link URLStreamHandlerRuntime}.
*/
@@ -21,4 +24,11 @@ public class URLStreamHandlerRuntimeTest extends RuntimeTestBase {
return new URLStreamHandlerRuntime();
}
+ @BeforeClass
+ public static void checkJDK() {
+ final boolean jdk9 = System.getProperty("java.version")
+ .startsWith("9-");
+ Assume.assumeTrue(!jdk9);
+ }
+
}