Add test for issue #125

This commit is contained in:
Daniel Holle 2024-03-04 11:51:28 +01:00
parent 59585296b0
commit f2e43f180c
2 changed files with 23 additions and 0 deletions

View 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();
}
}

View File

@ -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();
}
}