Skip to content

Commit 4190649

Browse files
committed
add classes of local var table to class_ref
This supports loading class refs that only appear in the local variable table. Not doing so result in some cases in an error of type `failed to find type symbol`.
1 parent d7bcd08 commit 4190649

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/java_bytecode/java_bytecode_parser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ void java_bytecode_parsert::get_class_refs()
359359
{
360360
typet t=java_type_from_string(m.signature);
361361
get_class_refs_rec(t);
362+
for(const auto & var : m.local_variable_table)
363+
{
364+
typet var_type=java_type_from_string(var.signature);
365+
get_class_refs_rec(var_type);
366+
}
362367
}
363368
}
364369

0 commit comments

Comments
 (0)