forked from JavaTX/JavaCompilerCore
Add test for #112
This commit is contained in:
parent
388614b220
commit
1877d7f170
7
resources/bytecode/javFiles/Bug112.jav
Normal file
7
resources/bytecode/javFiles/Bug112.jav
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
public class Bug112 {
|
||||||
|
m(x) {
|
||||||
|
var y;
|
||||||
|
x = y;
|
||||||
|
return y;
|
||||||
|
}
|
||||||
|
}
|
@ -869,4 +869,11 @@ public class TestComplete {
|
|||||||
var clazz = classFiles.get("Bug125");
|
var clazz = classFiles.get("Bug125");
|
||||||
var instance = clazz.getDeclaredConstructor().newInstance();
|
var instance = clazz.getDeclaredConstructor().newInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testBug112() throws Exception {
|
||||||
|
var classFiles = generateClassFiles(new ByteArrayClassLoader(), "Bug112.jav");
|
||||||
|
var clazz = classFiles.get("Bug112");
|
||||||
|
var instance = clazz.getDeclaredConstructor().newInstance();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user