forked from JavaTX/JavaCompilerCore
modified: ../../../../pom.xml
wieder auf Java-18 umgestellt modified: ../../java/targetast/TestComplete.java Test Tph4Test eingefuegt
This commit is contained in:
parent
975f2cefe3
commit
d54cd5e20a
8
pom.xml
8
pom.xml
@ -122,8 +122,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>17</source>
|
||||
<target>17</target>
|
||||
<source>18</source>
|
||||
<target>18</target>
|
||||
<compilerArgs>--enable-preview</compilerArgs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
@ -138,8 +138,8 @@ http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.source>18</maven.compiler.source>
|
||||
<maven.compiler.target>18</maven.compiler.target>
|
||||
<compilerArgs>
|
||||
--enable-preview
|
||||
</compilerArgs>
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user