@@ -1880,9 +1880,12 @@ void java_bytecode_parsert::read_bootstrapmethods_entry(classt &parsed_class)
1880
1880
u2 skipped_argument = u2_values[i];
1881
1881
recognized &= pool_entry (skipped_argument).tag == CONSTANT_Integer;
1882
1882
}
1883
+
1883
1884
if (!recognized)
1884
1885
{
1885
- debug () << " format of BootstrapMethods entry not recognized" << eom;
1886
+ debug () << " format of BootstrapMethods entry not recognized: extra "
1887
+ " arguments of wrong type"
1888
+ << eom;
1886
1889
store_unknown_method_handle (
1887
1890
parsed_class, bootstrap_method_index, std::move (u2_values));
1888
1891
continue ;
@@ -1898,7 +1901,9 @@ void java_bytecode_parsert::read_bootstrapmethods_entry(classt &parsed_class)
1898
1901
method_handle_argument.tag == CONSTANT_MethodHandle &&
1899
1902
method_type_argument.tag == CONSTANT_MethodType))
1900
1903
{
1901
- debug () << " format of BootstrapMethods entry not recognized" << eom;
1904
+ debug () << " format of BootstrapMethods entry not recognized: arguments "
1905
+ " wrong type"
1906
+ << eom;
1902
1907
store_unknown_method_handle (
1903
1908
parsed_class, bootstrap_method_index, std::move (u2_values));
1904
1909
continue ;
@@ -1910,7 +1915,9 @@ void java_bytecode_parsert::read_bootstrapmethods_entry(classt &parsed_class)
1910
1915
1911
1916
if (!lambda_method_handle.has_value ())
1912
1917
{
1913
- debug () << " format of BootstrapMethods entry not recognized" << eom;
1918
+ debug () << " format of BootstrapMethods entry not recognized: method "
1919
+ " handle not recognised"
1920
+ << eom;
1914
1921
store_unknown_method_handle (
1915
1922
parsed_class, bootstrap_method_index, std::move (u2_values));
1916
1923
continue ;
@@ -1936,7 +1943,6 @@ void java_bytecode_parsert::read_bootstrapmethods_entry(classt &parsed_class)
1936
1943
<< eom;
1937
1944
parsed_class.lambda_method_handle_map [{parsed_class.name , bootstrap_method_index}] =
1938
1945
*lambda_method_handle;
1939
-
1940
1946
}
1941
1947
}
1942
1948
0 commit comments