File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,7 @@ void java_bytecode_convert_methodt::convert(
447
447
// (function) type of the symbol
448
448
java_method_typet method_type = to_java_method_type (method_symbol.type );
449
449
method_type.set (ID_C_class, class_symbol.name );
450
+ method_type.set_is_final (m.is_final );
450
451
method_return_type = method_type.return_type ();
451
452
java_method_typet::parameterst ¶meters = method_type.parameters ();
452
453
Original file line number Diff line number Diff line change @@ -278,6 +278,16 @@ class java_method_typet : public code_typet
278
278
{
279
279
add (ID_exceptions_thrown_list).get_sub ().push_back (irept (exception));
280
280
}
281
+
282
+ bool get_is_final () const
283
+ {
284
+ return get_bool (ID_final);
285
+ }
286
+
287
+ void set_is_final (bool is_final)
288
+ {
289
+ set (ID_final, is_final);
290
+ }
281
291
};
282
292
283
293
template <>
You can’t perform that action at this time.
0 commit comments