From 9752eced1f2a3737aff3d39828f2b2dd1c0a7599 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Tue, 7 Dec 2021 15:24:19 +1300 Subject: [PATCH] Adjust tests for JDK 18-ea build --- .../ebeaninternal/server/profile/BasicProfileLocationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebean-test/src/test/java/io/ebeaninternal/server/profile/BasicProfileLocationTest.java b/ebean-test/src/test/java/io/ebeaninternal/server/profile/BasicProfileLocationTest.java index 7eccc8d83..1f6618d9a 100644 --- a/ebean-test/src/test/java/io/ebeaninternal/server/profile/BasicProfileLocationTest.java +++ b/ebean-test/src/test/java/io/ebeaninternal/server/profile/BasicProfileLocationTest.java @@ -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")){