@@ -306,22 +306,20 @@ code_typet member_type_lazy(
306
306
// / Retrieves the symbol of the lambda method associated with the given
307
307
// / lambda method handle (bootstrap method).
308
308
// / \param lambda_method_handles Vector of lambda method handles (bootstrap
309
- // / methods) of the class where the lambda is called
309
+ // / methods) of the class where the lambda is called
310
310
// / \param index Index of the lambda method handle in the vector
311
311
// / \return Symbol of the lambda method if the method handle does not have an
312
- // / unknown type
312
+ // / unknown type
313
313
optionalt<symbolt> java_bytecode_convert_methodt::get_lambda_method_symbol (
314
314
const java_class_typet::java_lambda_method_handlest &lambda_method_handles,
315
- const irep_idt &index)
315
+ const size_t &index)
316
316
{
317
- const symbol_exprt &lambda_method_handle =
318
- lambda_method_handles.at (std::stoi (id2string (index )));
317
+ const symbol_exprt &lambda_method_handle = lambda_method_handles.at (index );
319
318
// If the lambda method handle has an unknown type, it does not refer to
320
319
// any symbol (it is a symbol expression with empty identifier)
321
320
if (!lambda_method_handle.get_identifier ().empty ())
322
321
return symbol_table.lookup_ref (lambda_method_handle.get_identifier ());
323
- else
324
- return {};
322
+ return {};
325
323
}
326
324
327
325
// / This creates a method symbol in the symtab, but doesn't actually perform
@@ -1238,7 +1236,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
1238
1236
1239
1237
const optionalt<symbolt> &lambda_method_symbol = get_lambda_method_symbol (
1240
1238
lambda_method_handles,
1241
- code_type.get (ID_java_lambda_method_handle_index));
1239
+ code_type.get_int (ID_java_lambda_method_handle_index));
1242
1240
if (lambda_method_symbol.has_value ())
1243
1241
debug () << " Converting invokedynamic for lambda: "
1244
1242
<< lambda_method_symbol.value ().name << eom;
0 commit comments