Skip to content

Commit c08133e

Browse files
committed
Ignore a legacy way of finding a class, #71
1 parent 7e8cd84 commit c08133e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

affinity/src/test/java/net/openhft/affinity/BootClassPathTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
public class BootClassPathTest {
88
@Test
9-
public void shouldDetectClassesOnClassPath() throws Exception {
9+
public void shouldDetectClassesOnClassPath() {
10+
if (!System.getProperty("java.version").startsWith("1.8"))
11+
return;
1012
assertTrue(BootClassPath.INSTANCE.has("java.lang.Thread"));
1113
assertTrue(BootClassPath.INSTANCE.has("java.lang.Runtime"));
1214
}

0 commit comments

Comments
 (0)