Skip to content

Commit 8182793

Browse files
authoredDec 21, 2023
Merge pull request #8140 from tautschnig/cleanup/java_bytecode_parsert
java_bytecode_parsert: construct with message handler
2 parents 0003101 + 7f3eef2 commit 8182793

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎jbmc/src/java_bytecode/java_bytecode_parser.cpp

+6-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Author: Daniel Kroening, kroening@kroening.com
2727
class java_bytecode_parsert final : public parsert
2828
{
2929
public:
30-
explicit java_bytecode_parsert(bool skip_instructions)
31-
: skip_instructions(skip_instructions)
30+
java_bytecode_parsert(
31+
bool skip_instructions,
32+
message_handlert &message_handler)
33+
: parsert(message_handler), skip_instructions(skip_instructions)
3234
{
3335
}
3436

@@ -1809,9 +1811,9 @@ std::optional<java_bytecode_parse_treet> java_bytecode_parse(
18091811
message_handlert &message_handler,
18101812
bool skip_instructions)
18111813
{
1812-
java_bytecode_parsert java_bytecode_parser(skip_instructions);
1814+
java_bytecode_parsert java_bytecode_parser(
1815+
skip_instructions, message_handler);
18131816
java_bytecode_parser.in=&istream;
1814-
java_bytecode_parser.log.set_message_handler(message_handler);
18151817

18161818
bool parser_result=java_bytecode_parser.parse();
18171819

0 commit comments

Comments
 (0)
Please sign in to comment.