File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -311,11 +311,10 @@ code_typet member_type_lazy(
311
311
// / \param lambda_method_handles Vector of lambda method handles (bootstrap
312
312
// / methods) of the class where the lambda is called
313
313
// / \param index Index of the lambda method handle in the vector
314
- // / \return Symbol of the lambda method if the method handle does not have an
315
- // / unknown type
314
+ // / \return Symbol of the lambda method if the method handle has a known type
316
315
optionalt<symbolt> java_bytecode_convert_methodt::get_lambda_method_symbol (
317
316
const java_class_typet::java_lambda_method_handlest &lambda_method_handles,
318
- const size_t & index)
317
+ const size_t index)
319
318
{
320
319
const symbol_exprt &lambda_method_handle = lambda_method_handles.at (index );
321
320
// If the lambda method handle has an unknown type, it does not refer to
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ class java_bytecode_convert_methodt:public messaget
237
237
238
238
optionalt<symbolt> get_lambda_method_symbol (
239
239
const java_class_typet::java_lambda_method_handlest &lambda_method_handles,
240
- const size_t & index);
240
+ const size_t index);
241
241
242
242
// conversion
243
243
void convert (const symbolt &class_symbol, const methodt &);
Original file line number Diff line number Diff line change @@ -49,10 +49,12 @@ class java_class_typet:public class_typet
49
49
50
50
void add_lambda_method_handle (const irep_idt &identifier)
51
51
{
52
+ // creates a symbol_exprt for the identifier and pushes it in the vector
52
53
lambda_method_handles ().emplace_back (identifier);
53
54
}
54
55
void add_unknown_lambda_method_handle ()
55
56
{
57
+ // creates empty symbol_exprt and pushes it in the vector
56
58
lambda_method_handles ().emplace_back ();
57
59
}
58
60
};
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ require_parse_tree::require_lambda_entry_for_descriptor(
40
40
entry.second .method_type == method_type &&
41
41
entry.second .lambda_method_ref == lambda_method_ref);
42
42
});
43
- INFO (" Number of matching lambda method entries: " << matches.size ());
44
43
REQUIRE (matches.size () == 1 );
45
44
return matches.at (0 ).second ;
46
45
}
You can’t perform that action at this time.
0 commit comments