Skip to content

Commit 546f724

Browse files
committed
Store the final status of fields in componentt
1 parent d54d101 commit 546f724

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
@@ -223,6 +223,16 @@ class struct_union_typet:public typet
223223
{
224224
return set(ID_C_is_padding, is_padding);
225225
}
226+
227+
bool get_is_final() const
228+
{
229+
return get_bool(ID_final);
230+
}
231+
232+
void set_is_final(const bool is_final)
233+
{
234+
set(ID_final, is_final);
235+
}
226236
};
227237

228238
typedef std::vector<componentt> componentst;

0 commit comments

Comments
 (0)