@@ -52,8 +52,6 @@ class java_bytecode_parsert:public parsert
52
52
method_handle_typet;
53
53
typedef java_bytecode_parse_treet::classt::lambda_method_handlet
54
54
lambda_method_handlet;
55
- typedef java_bytecode_parse_treet::classt::lambda_method_handle_mapt
56
- lambda_method_handle_mapt;
57
55
typedef java_bytecode_parse_treet::classt::u2_valuest u2_valuest;
58
56
59
57
java_bytecode_parse_treet parse_tree;
@@ -1941,14 +1939,14 @@ void java_bytecode_parsert::read_bootstrapmethods_entry(classt &parsed_class)
1941
1939
<< " \n method type is "
1942
1940
<< id2string (pool_entry (method_type_argument.ref1 ).s )
1943
1941
<< eom;
1944
- parsed_class.lambda_method_handle_map [{parsed_class. name , bootstrap_method_index}] =
1945
- *lambda_method_handle;
1942
+ parsed_class.add_method_handle (
1943
+ bootstrap_method_index, *lambda_method_handle) ;
1946
1944
}
1947
1945
}
1948
1946
1949
1947
// / Creates an unknown method handle and puts it into the parsed_class
1950
1948
// / \param parsed_class: The class whose bootstrap method handles we are using
1951
- // / \param bootstrap_method_index: The current index in the boostrap entry table
1949
+ // / \param bootstrap_method_index: The current index in the bootstrap entry table
1952
1950
// / \param u2_values: The indices of the arguments for the call
1953
1951
void java_bytecode_parsert::store_unknown_method_handle (
1954
1952
java_bytecode_parsert::classt &parsed_class,
@@ -1957,7 +1955,6 @@ void java_bytecode_parsert::store_unknown_method_handle(
1957
1955
{
1958
1956
const lambda_method_handlet lambda_method_handle =
1959
1957
lambda_method_handlet::create_unknown_handle (move (u2_values));
1960
- parsed_class
1961
- .lambda_method_handle_map [{parsed_class.name , bootstrap_method_index}] =
1962
- lambda_method_handle;
1958
+ parsed_class.add_method_handle (
1959
+ bootstrap_method_index, lambda_method_handle);
1963
1960
}
0 commit comments