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