Adjust tests for JDK 18-ea build

This commit is contained in:
Rob Bygrave committed 2021-12-07 15:24:19 +13:00
1 parent e7aa1fdac5
commit 9752eced1f
1 file changed
+1 -1
@@ -15,7 +15,7 @@ public class BasicProfileLocationTest {
String javaVersion = System.getProperty("java.version");
assertThat(loc.obtain()).isTrue();
if (javaVersion.startsWith("1.8")) {
assertThat(loc.fullLocation()).endsWith("jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method:12)");
assertThat(loc.fullLocation()).endsWith("invoke0(Native Method:12)");
assertThat(loc.location()).isEqualTo("sun.reflect.NativeMethodAccessorImpl.invoke0");
assertThat(loc.label()).isEqualTo("NativeMethodAccessorImpl.invoke0");
} else if (javaVersion.startsWith("18")){