Skip to content

Commit 44867d5

Browse files
Merge pull request #2865 from romainbrenguier/clean-up/java-type
Add java void type where it was forgotten
2 parents cdd94b9 + 4b669e4 commit 44867d5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

jbmc/src/java_bytecode/java_types.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,8 @@ optionalt<size_t> java_generic_symbol_typet::generic_type_index(
939939

940940
std::string pretty_java_type(const typet &type)
941941
{
942+
if(type == java_void_type())
943+
return "void";
942944
if(type == java_int_type())
943945
return "int";
944946
else if(type == java_long_type())

jbmc/src/java_bytecode/java_types.h

+1
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ typet java_char_type();
306306
typet java_float_type();
307307
typet java_double_type();
308308
typet java_boolean_type();
309+
typet java_void_type();
309310
reference_typet java_reference_type(const typet &subtype);
310311
reference_typet java_lang_object_type();
311312
symbol_typet java_classname(const std::string &);

0 commit comments

Comments
 (0)