diff --git a/pom.xml b/pom.xml
index 3f7cc7e3b..7c12ddfde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -122,8 +122,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
org.apache.maven.plugins
maven-compiler-plugin
-
- 17
+
+ 18
--enable-preview
@@ -138,8 +138,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
UTF-8
UTF-8
- 17
- 17
+ 18
+ 18
--enable-preview
diff --git a/src/test/java/targetast/TestComplete.java b/src/test/java/targetast/TestComplete.java
index d0e075403..c30dfed0e 100644
--- a/src/test/java/targetast/TestComplete.java
+++ b/src/test/java/targetast/TestComplete.java
@@ -349,6 +349,13 @@ public class TestComplete {
var instance = classFiles.get("Tph3").getDeclaredConstructor().newInstance();
}
+ @Test
+ public void tph4Test() throws Exception {
+ var classFiles = generateClassFiles("Tph4.jav", new ByteArrayClassLoader());
+ var tph5 = classFiles.get("Tph4");
+ var instance = tph5.getDeclaredConstructor().newInstance();
+ }
+
@Test
public void tph5Test() throws Exception {
var classFiles = generateClassFiles("Tph5.jav", new ByteArrayClassLoader());