Skip to content

Commit a1c68e3

Browse files
thk123Matthias Güdemann
authored andcommitted
Fixup Use the strcutured classes to simplify and make more explict the code
1 parent 36b5230 commit a1c68e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_bytecode_parser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,14 +1864,14 @@ java_bytecode_parsert::parse_method_handle(const pool_entryt &entry)
18641864
method_handle_typet::BOOTSTRAP_METHOD_HANDLE;
18651865
}
18661866
else if(
1867-
has_prefix(id2string(pool_entry(nameandtype_entry.ref1).s), "lambda$"))
1867+
has_prefix(name_and_type.get_name(pool_entry_lambda), "lambda$"))
18681868
{
18691869
// names seem to be lambda$POSTFIX$NUM
18701870
// where POSTFIX is FUN for a function name in which the lambda is define
18711871
// "static" when it is a static member of the class
18721872
// "new" when it is a class variable, instantiated in <init>
18731873
lambda_method_handle.lambda_method_name =
1874-
pool_entry(nameandtype_entry.ref1).s;
1874+
name_and_type.get_name(pool_entry_lambda);
18751875
lambda_method_handle.handle_type =
18761876
method_handle_typet::LAMBDA_METHOD_HANDLE;
18771877
}

0 commit comments

Comments
 (0)