forked from JavaTX/JavaCompilerCore
modified: ../../../../pom.xml
modified: ../../java/targetast/TphTest.java modified: ../bytecode/javFiles/Tph.jav new file: ../bytecode/javFiles/Tph7.jav
This commit is contained in:
parent
c21104f646
commit
bfc5c55e90
4
pom.xml
4
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>
|
||||
|
@ -18,6 +18,9 @@ public class TphTest {
|
||||
var classFiles = TestCodegen.generateClassFiles("Tph.jav", new ByteArrayClassLoader());
|
||||
classToTest = classFiles.get("Tph");
|
||||
instanceOfClass = classToTest.getDeclaredConstructor().newInstance();
|
||||
classFiles = TestCodegen.generateClassFiles("Tph7.jav", new ByteArrayClassLoader());
|
||||
classToTest = classFiles.get("Tph7");
|
||||
instanceOfClass = classToTest.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
|
||||
@Test
|
||||
|
@ -3,7 +3,6 @@ public class Tph {
|
||||
m(a,b){
|
||||
var c = m2(b);
|
||||
return a;
|
||||
// return m2(b);
|
||||
}
|
||||
|
||||
m2(b){
|
||||
|
11
src/test/resources/bytecode/javFiles/Tph7.jav
Normal file
11
src/test/resources/bytecode/javFiles/Tph7.jav
Normal file
@ -0,0 +1,11 @@
|
||||
public class Tph7 {
|
||||
|
||||
m(a,b){
|
||||
var c = m2(b);
|
||||
return m2(b);
|
||||
}
|
||||
|
||||
m2(b){
|
||||
return b;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user