Skip to content

Commit ca5dae4

Browse files
thk123Matthias Güdemann
thk123
authored and
Matthias Güdemann
committed
Fixup Use the strcutured classes to simplify and make more explict the code
1 parent b56e42e commit ca5dae4

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
@@ -1888,14 +1888,14 @@ java_bytecode_parsert::parse_method_handle(const pool_entryt &entry)
18881888
method_handle_typet::BOOTSTRAP_METHOD_HANDLE;
18891889
}
18901890
else if(
1891-
has_prefix(id2string(pool_entry(nameandtype_entry.ref1).s), "lambda$"))
1891+
has_prefix(name_and_type.get_name(pool_entry_lambda), "lambda$"))
18921892
{
18931893
// names seem to be lambda$POSTFIX$NUM
18941894
// where POSTFIX is FUN for a function name in which the lambda is define
18951895
// "static" when it is a static member of the class
18961896
// "new" when it is a class variable, instantiated in <init>
18971897
lambda_method_handle.lambda_method_name =
1898-
pool_entry(nameandtype_entry.ref1).s;
1898+
name_and_type.get_name(pool_entry_lambda);
18991899
lambda_method_handle.handle_type =
19001900
method_handle_typet::LAMBDA_METHOD_HANDLE;
19011901
}

0 commit comments

Comments
 (0)