Add test for issue #125
This commit is contained in:
parent
59585296b0
commit
f2e43f180c
16
resources/bytecode/javFiles/Bug125.jav
Normal file
16
resources/bytecode/javFiles/Bug125.jav
Normal file
@ -0,0 +1,16 @@
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.LinkedList;
|
||||
import java.util.ArrayList;
|
||||
|
||||
class Bug125 {
|
||||
static ArrayList<String> works = new ArrayList<>();
|
||||
static List<String> fails = new ArrayList<>();
|
||||
|
||||
void main() {
|
||||
works.toString();
|
||||
fails.toString();
|
||||
}
|
||||
}
|
@ -855,4 +855,11 @@ public class TestComplete {
|
||||
var clazz = classFiles.get("Bug123");
|
||||
var instance = clazz.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testBug125() throws Exception {
|
||||
var classFiles = generateClassFiles(new ByteArrayClassLoader(), "Bug125.jav");
|
||||
var clazz = classFiles.get("Bug125");
|
||||
var instance = clazz.getDeclaredConstructor().newInstance();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user