File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
unit/java_bytecode/java_bytecode_convert_method Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,23 @@ struct lambda_assignment_test_datat
26
26
bool should_return_value;
27
27
};
28
28
29
+ // / Verifies for a given function that contains:
30
+ // / {lambda_variable_id} = invokedynamic method_handle_index
31
+ // / code looks
32
+ // / like:
33
+ // / tmp_object_symbol = java_new(lambda_tmp_type)
34
+ // / {lambda_variable_id} = (cast)tmp_object_symbol
35
+ // / and the type lambda_tmp_type:
36
+ // / implements {lambda_interface}
37
+ // / has method {lambda_interface_method_descriptor}
38
+ // / and the method body looks like
39
+ // / function_call_exprt(
40
+ // / should_return_value ? symbol_exprt : nil_exprt,
41
+ // / {lambda_function_id},
42
+ // / {expected_params})
43
+ // / \param symbol_table: The loaded symbol table
44
+ // / \param instructions: The instructions of the method that calls invokedynamic
45
+ // / \param test_data: The parameters for the test
29
46
void validate_lamdba_assignement (
30
47
const symbol_tablet &symbol_table,
31
48
const std::vector<codet> &instructions,
You can’t perform that action at this time.
0 commit comments