Skip to content

Commit e4cf694

Browse files
Bugfix: Java symbol types must have mode ID_java
1 parent e158bb4 commit e4cf694

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/java_bytecode/java_bytecode_typecheck_type.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ void java_bytecode_typecheckt::typecheck_type_symbol(symbolt &symbol)
5757
{
5858
assert(symbol.is_type);
5959

60+
symbol.mode = ID_java;
6061
typecheck_type(symbol.type);
6162
}

src/java_bytecode/java_string_library_preprocess.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ void java_string_library_preprocesst::add_string_type(
247247
string_symbol->pretty_name=id2string(class_name);
248248
string_symbol->type=string_type;
249249
string_symbol->is_type=true;
250+
string_symbol->mode = ID_java;
250251
}
251252

252253
/// add a symbol in the table with static lifetime and name containing

0 commit comments

Comments
 (0)