Skip to content

Commit 0e4176d

Browse files
Fix modes in java entry point code
1 parent d325431 commit 0e4176d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/java_bytecode/java_entry_point.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ bool java_entry_point(
522522
if(to_code_type(symbol.type).return_type()!=empty_typet())
523523
{
524524
auxiliary_symbolt return_symbol;
525-
return_symbol.mode=ID_C;
525+
return_symbol.mode=ID_java;
526526
return_symbol.is_static_lifetime=false;
527527
return_symbol.name=JAVA_ENTRY_POINT_RETURN_SYMBOL;
528528
return_symbol.base_name="return";
@@ -536,7 +536,7 @@ bool java_entry_point(
536536
{
537537
// add the exceptional return value
538538
auxiliary_symbolt exc_symbol;
539-
exc_symbol.mode=ID_C;
539+
exc_symbol.mode=ID_java;
540540
exc_symbol.is_static_lifetime=true;
541541
exc_symbol.name=id2string(symbol.name)+EXC_SUFFIX;
542542
exc_symbol.base_name=id2string(symbol.name)+EXC_SUFFIX;

0 commit comments

Comments
 (0)