Skip to content

Commit d849b3e

Browse files
committed
Fix diffblue#113: always try to load java.lang.Object, as internal types such as arrays refer to it.
(Though of course normally we expect that to make a stub, not an elaborated class)
1 parent d9bac49 commit d849b3e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/java_bytecode/java_class_loader.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ java_bytecode_parse_treet &java_class_loadert::operator()(
3434
const irep_idt &class_name)
3535
{
3636
std::stack<irep_idt> queue;
37-
37+
38+
// Always require java.lang.Object, as it is the base of
39+
// internal classes such as array types.
40+
queue.push("java.lang.Object");
3841
queue.push(class_name);
3942

4043
while(!queue.empty())

0 commit comments

Comments
 (0)