@@ -444,14 +444,14 @@ void java_bytecode_convert_methodt::convert(
444
444
445
445
// Obtain a std::vector of code_typet::parametert objects from the
446
446
// (function) type of the symbol
447
- code_typet code_type = to_code_type (method_symbol.type );
448
- code_type .set (ID_C_class, class_symbol.name );
449
- method_return_type=code_type .return_type ();
450
- code_typet::parameterst ¶meters=code_type .parameters ();
447
+ java_method_typet method_type = to_java_method_type (method_symbol.type );
448
+ method_type .set (ID_C_class, class_symbol.name );
449
+ method_return_type = method_type .return_type ();
450
+ code_typet::parameterst ¶meters = method_type .parameters ();
451
451
452
- // Determine the number of local variable slots used by the JVM to maintan the
453
- // formal parameters
454
- slots_for_parameters= java_method_parameter_slots (code_type );
452
+ // Determine the number of local variable slots used by the JVM to maintain
453
+ // the formal parameters
454
+ slots_for_parameters = java_method_parameter_slots (method_type );
455
455
456
456
debug () << " Generating codet: class "
457
457
<< class_symbol.name << " , method "
@@ -587,11 +587,11 @@ void java_bytecode_convert_methodt::convert(
587
587
method_symbol.location =m.source_location ;
588
588
method_symbol.location .set_function (method_identifier);
589
589
590
- std::vector<irept> &exceptions_list = code_type .throws_exceptions ();
590
+ std::vector<irept> &exceptions_list = method_type .throws_exceptions ();
591
591
for (const auto &exception_name : m.throws_exception_table )
592
592
exceptions_list.push_back (irept (exception_name));
593
593
594
- const std::string signature_string = pretty_signature (code_type );
594
+ const std::string signature_string = pretty_signature (method_type );
595
595
596
596
// Set up the pretty name for the method entry in the symbol table.
597
597
// The pretty name of a constructor includes the base name of the class
@@ -605,7 +605,7 @@ void java_bytecode_convert_methodt::convert(
605
605
method_symbol.pretty_name =
606
606
id2string (class_symbol.pretty_name ) + signature_string;
607
607
INVARIANT (
608
- code_type .get_is_constructor (),
608
+ method_type .get_is_constructor (),
609
609
" Member type should have already been marked as a constructor" );
610
610
}
611
611
else
@@ -614,14 +614,13 @@ void java_bytecode_convert_methodt::convert(
614
614
id2string (m.base_name ) + signature_string;
615
615
}
616
616
617
- method_symbol.type = code_type;
618
-
619
- current_method=method_symbol.name ;
620
- method_has_this=code_type.has_this ();
617
+ method_symbol.type = method_type;
618
+ current_method = method_symbol.name ;
619
+ method_has_this = method_type.has_this ();
621
620
if ((!m.is_abstract ) && (!m.is_native ))
622
621
method_symbol.value = convert_instructions (
623
622
m,
624
- code_type ,
623
+ method_type ,
625
624
method_symbol.name ,
626
625
to_java_class_type (class_symbol.type ).lambda_method_handles ());
627
626
}
0 commit comments