Skip to content

Commit f2faf70

Browse files
Use parsed information for thrown exceptions.
1 parent 5f8dcfb commit f2faf70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_method.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ void java_bytecode_convert_methodt::convert(
587587
method_symbol.location=m.source_location;
588588
method_symbol.location.set_function(method_identifier);
589589

590+
std::vector<irept> &exceptions_list = code_type.throws_exceptions();
591+
for(const auto &exception_name : m.throws_exception_table)
592+
exceptions_list.push_back(irept(exception_name));
593+
590594
const std::string signature_string = pretty_signature(code_type);
591595

592596
// Set up the pretty name for the method entry in the symbol table.

0 commit comments

Comments
 (0)