Skip to content

Commit 03bae45

Browse files
committed
Store the final status of fields in componentt
1 parent 7de9df8 commit 03bae45

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

jbmc/src/java_bytecode/java_bytecode_convert_class.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,8 @@ void java_bytecode_convert_classt::convert(
753753
else
754754
component.set_access(ID_default);
755755

756+
component.set_is_final(f.is_final);
757+
756758
// Load annotations
757759
if(!f.annotations.empty())
758760
{

src/util/std_types.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,16 @@ class struct_union_typet:public typet
189189
{
190190
return set(ID_C_is_padding, is_padding);
191191
}
192+
193+
bool get_is_final() const
194+
{
195+
return get_bool(ID_final);
196+
}
197+
198+
void set_is_final(const bool is_final)
199+
{
200+
set(ID_final, is_final);
201+
}
192202
};
193203

194204
typedef std::vector<componentt> componentst;

0 commit comments

Comments
 (0)