forked from JavaTX/JavaCompilerCore
Add Box test
This commit is contained in:
parent
5503f3723c
commit
04b9af8c7b
@ -464,4 +464,10 @@ public class TestComplete {
|
|||||||
var classFiles = generateClassFiles("Y.jav", new ByteArrayClassLoader());
|
var classFiles = generateClassFiles("Y.jav", new ByteArrayClassLoader());
|
||||||
var instance = classFiles.get("Y").getDeclaredConstructor().newInstance();
|
var instance = classFiles.get("Y").getDeclaredConstructor().newInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void boxTest() throws Exception {
|
||||||
|
var classFiles = generateClassFiles("Box.jav", new ByteArrayClassLoader());
|
||||||
|
var instance = classFiles.get("Box_Main").getDeclaredConstructor().newInstance();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
11
src/test/resources/bytecode/javFiles/Box.jav
Normal file
11
src/test/resources/bytecode/javFiles/Box.jav
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
class Box<A> {
|
||||||
|
void m(A a) { }
|
||||||
|
}
|
||||||
|
|
||||||
|
class B { }
|
||||||
|
class Box_Main extends B {
|
||||||
|
m(b) {
|
||||||
|
b.m(new Box_Main());
|
||||||
|
b.m(new B());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user