Skip to content

Commit befc225

Browse files
Bugfix: Java symbol types must have mode ID_java
1 parent a8bcdb5 commit befc225

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/java_bytecode/java_bytecode_typecheck_type.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ void java_bytecode_typecheckt::typecheck_type(typet &type)
2020
{
2121
irep_idt identifier=to_symbol_type(type).get_identifier();
2222

23-
const auto type_symbol = symbol_table.lookup(identifier);
23+
auto type_symbol = symbol_table.get_writeable(identifier);
2424
DATA_INVARIANT(
2525
type_symbol, "symbol " + id2string(identifier) + " must exist already");
2626
DATA_INVARIANT(
2727
type_symbol->is_type,
2828
"symbol " + id2string(identifier) + " must be a type");
29+
30+
type_symbol->mode = ID_java;
2931
}
3032
else if(type.id()==ID_pointer)
3133
{

0 commit comments

Comments
 (0)