Skip to content

Commit 00c5189

Browse files
fixup! bytecode parsing
1 parent 9f3333f commit 00c5189

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jbmc/src/java_bytecode/java_bytecode_parser.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class java_bytecode_parsert : public parsert
8181

8282
std::vector<bytecodet> bytecodes;
8383

84-
pool_entryt &pool_entry(u2 index) const
84+
pool_entryt &pool_entry(u2 index)
8585
{
8686
if(index == 0 || index >= constant_pool.size())
8787
{
@@ -93,7 +93,7 @@ class java_bytecode_parsert : public parsert
9393
return constant_pool[index];
9494
}
9595

96-
exprt &constant(u2 index) const
96+
exprt &constant(u2 index)
9797
{
9898
return pool_entry(index).expr;
9999
}
@@ -123,7 +123,7 @@ class java_bytecode_parsert : public parsert
123123
void rmethod(classt &parsed_class);
124124
void
125125
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();
127127
void rclass_attribute(classt &parsed_class);
128128
void rRuntimeAnnotation_attribute(annotationst &);
129129
void rRuntimeAnnotation(annotationt &);
@@ -141,7 +141,7 @@ class java_bytecode_parsert : public parsert
141141
parse_method_handle(const class method_handle_infot &entry);
142142
void read_bootstrapmethods_entry(classt &);
143143

144-
void skip_bytes(std::size_t bytes) const
144+
void skip_bytes(std::size_t bytes)
145145
{
146146
for(std::size_t i = 0; i < bytes; i++)
147147
{
@@ -1689,7 +1689,7 @@ void java_bytecode_parsert::rinner_classes_attribute(
16891689
/// https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7.5
16901690
/// Parses the Exceptions attribute for the current method,
16911691
/// 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()
16931693
{
16941694
u2 number_of_exceptions = read_u2();
16951695

0 commit comments

Comments
 (0)