Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java_bytecode_parsert: construct with message handler #8140

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions jbmc/src/java_bytecode/java_bytecode_parser.cpp
Original file line number Diff line number Diff line change
@@ -27,8 +27,10 @@ Author: Daniel Kroening, kroening@kroening.com
class java_bytecode_parsert final : public parsert
{
public:
explicit java_bytecode_parsert(bool skip_instructions)
: skip_instructions(skip_instructions)
java_bytecode_parsert(
bool skip_instructions,
message_handlert &message_handler)
: parsert(message_handler), skip_instructions(skip_instructions)
{
}

@@ -1809,9 +1811,9 @@ std::optional<java_bytecode_parse_treet> java_bytecode_parse(
message_handlert &message_handler,
bool skip_instructions)
{
java_bytecode_parsert java_bytecode_parser(skip_instructions);
java_bytecode_parsert java_bytecode_parser(
skip_instructions, message_handler);
java_bytecode_parser.in=&istream;
java_bytecode_parser.log.set_message_handler(message_handler);

bool parser_result=java_bytecode_parser.parse();