From d54cd5e20a5c2de68f8278070445f937dea0a202 Mon Sep 17 00:00:00 2001 From: "pl@gohorb.ba-horb.de" Date: Mon, 8 Aug 2022 14:45:58 +0200 Subject: [PATCH] modified: ../../../../pom.xml wieder auf Java-18 umgestellt modified: ../../java/targetast/TestComplete.java Test Tph4Test eingefuegt --- pom.xml | 8 ++++---- src/test/java/targetast/TestComplete.java | 7 +++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index 3f7cc7e3..7c12ddfd 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 - 17 + 18 + 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 d0e07540..c30dfed0 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());