File tree 2 files changed +13
-1
lines changed 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ void java_bytecode_convert_classt::convert(
332
332
class_type.set (
333
333
ID_java_enum_static_unwind,
334
334
std::to_string (c.enum_elements +1 ));
335
- class_type.set (ID_enumeration, true );
335
+ class_type.set_is_enumeration ( true );
336
336
}
337
337
338
338
if (c.is_public )
Original file line number Diff line number Diff line change @@ -248,6 +248,18 @@ class java_class_typet:public class_typet
248
248
return get_bool (ID_incomplete_class);
249
249
}
250
250
251
+ // / is class an enumeration?
252
+ bool get_is_enumeration () const
253
+ {
254
+ return get_bool (ID_enumeration);
255
+ }
256
+
257
+ // / marks class as an enumeration
258
+ void set_is_enumeration (const bool is_enumeration)
259
+ {
260
+ set (ID_enumeration, is_enumeration);
261
+ }
262
+
251
263
// it may be better to introduce a class like
252
264
// class java_lambda_method_handlet : private irept
253
265
// {
You can’t perform that action at this time.
0 commit comments