@@ -81,7 +81,7 @@ class java_bytecode_parsert : public parsert
81
81
82
82
std::vector<bytecodet> bytecodes;
83
83
84
- pool_entryt &pool_entry (u2 index) const
84
+ pool_entryt &pool_entry (u2 index)
85
85
{
86
86
if (index == 0 || index >= constant_pool.size ())
87
87
{
@@ -93,7 +93,7 @@ class java_bytecode_parsert : public parsert
93
93
return constant_pool[index ];
94
94
}
95
95
96
- exprt &constant (u2 index) const
96
+ exprt &constant (u2 index)
97
97
{
98
98
return pool_entry (index ).expr ;
99
99
}
@@ -123,7 +123,7 @@ class java_bytecode_parsert : public parsert
123
123
void rmethod (classt &parsed_class);
124
124
void
125
125
rinner_classes_attribute (classt &parsed_class, const u4 &attribute_length);
126
- std::vector<irep_idt> rexceptions_attribute () const ;
126
+ std::vector<irep_idt> rexceptions_attribute ();
127
127
void rclass_attribute (classt &parsed_class);
128
128
void rRuntimeAnnotation_attribute (annotationst &);
129
129
void rRuntimeAnnotation (annotationt &);
@@ -141,7 +141,7 @@ class java_bytecode_parsert : public parsert
141
141
parse_method_handle (const class method_handle_infot &entry);
142
142
void read_bootstrapmethods_entry (classt &);
143
143
144
- void skip_bytes (std::size_t bytes) const
144
+ void skip_bytes (std::size_t bytes)
145
145
{
146
146
for (std::size_t i = 0 ; i < bytes; i++)
147
147
{
@@ -1689,7 +1689,7 @@ void java_bytecode_parsert::rinner_classes_attribute(
1689
1689
// / https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.5
1690
1690
// / Parses the Exceptions attribute for the current method,
1691
1691
// / and returns a vector of exceptions.
1692
- std::vector<irep_idt> java_bytecode_parsert::rexceptions_attribute () const
1692
+ std::vector<irep_idt> java_bytecode_parsert::rexceptions_attribute ()
1693
1693
{
1694
1694
u2 number_of_exceptions = read_u2 ();
1695
1695
0 commit comments