diff --git a/jbmc/src/java_bytecode/java_bytecode_parser.cpp b/jbmc/src/java_bytecode/java_bytecode_parser.cpp index b7e02ddd859..ccf9375e717 100644 --- a/jbmc/src/java_bytecode/java_bytecode_parser.cpp +++ b/jbmc/src/java_bytecode/java_bytecode_parser.cpp @@ -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( 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();