Skip to content

Commit 8da3eef

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#1414 from antlechner/antonia/Character
Fix signatures for methods in java.lang.Character
2 parents 0e70863 + 0b56d97 commit 8da3eef

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/java_bytecode/character_refine_preprocess.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ codet character_refine_preprocesst::convert_is_identifier_ignorable_int(
581581
}
582582

583583
/// Converts function call to an assignment of an expression corresponding to
584-
/// the java method Character.isIdeographic:(C)Z
584+
/// the java method Character.isIdeographic:(I)Z
585585
/// \param target: a position in a goto program
586586
codet character_refine_preprocesst::convert_is_ideographic(
587587
conversion_inputt &target)
@@ -753,7 +753,7 @@ codet character_refine_preprocesst::convert_is_lower_case_int(
753753
}
754754

755755
/// Converts function call to an assignment of an expression corresponding to
756-
/// the java method Character.isLowSurrogate:(I)Z
756+
/// the java method Character.isLowSurrogate:(C)Z
757757
/// \param target: a position in a goto program
758758
codet character_refine_preprocesst::convert_is_low_surrogate(
759759
conversion_inputt &target)
@@ -1127,7 +1127,7 @@ exprt character_refine_preprocesst::expr_of_low_surrogate(
11271127
}
11281128

11291129
/// Converts function call to an assignment of an expression corresponding to
1130-
/// the java method Character.lowSurrogate:(I)Z
1130+
/// the java method Character.lowSurrogate:(I)C
11311131
/// \param target: a position in a goto program
11321132
codet character_refine_preprocesst::convert_low_surrogate(
11331133
conversion_inputt &target)
@@ -1394,7 +1394,7 @@ void character_refine_preprocesst::initialize_conversion_table()
13941394
// "(Ljava.lang.CharSequence;I)I"
13951395
// Not supported "java::java.lang.Character.codePointCount:([CII)I"
13961396
// Not supported "java::java.lang.Character.codePointCount:"
1397-
// "(Ljava.lang.CharSequence;I)I"
1397+
// "(Ljava.lang.CharSequence;II)I"
13981398
// Not supported "java::java.lang.Character.compareTo:"
13991399
// "(Ljava.lang.Character;)I"
14001400

@@ -1422,11 +1422,11 @@ void character_refine_preprocesst::initialize_conversion_table()
14221422
&character_refine_preprocesst::convert_get_numeric_value_int;
14231423
conversion_table["java::java.lang.Character.getType:(C)I"]=
14241424
&character_refine_preprocesst::convert_get_type_char;
1425-
conversion_table["java::java.lang.Character.getType:(I)Z"]=
1425+
conversion_table["java::java.lang.Character.getType:(I)I"]=
14261426
&character_refine_preprocesst::convert_get_type_int;
14271427
conversion_table["java::java.lang.Character.hashCode:()I"]=
14281428
&character_refine_preprocesst::convert_hash_code;
1429-
conversion_table["java::java.lang.Character.highSurrogate:(C)Z"]=
1429+
conversion_table["java::java.lang.Character.highSurrogate:(I)C"]=
14301430
&character_refine_preprocesst::convert_high_surrogate;
14311431
conversion_table["java::java.lang.Character.isAlphabetic:(I)Z"]=
14321432
&character_refine_preprocesst::convert_is_alphabetic;
@@ -1446,7 +1446,7 @@ void character_refine_preprocesst::initialize_conversion_table()
14461446
&character_refine_preprocesst::convert_is_identifier_ignorable_char;
14471447
conversion_table["java::java.lang.Character.isIdentifierIgnorable:(I)Z"]=
14481448
&character_refine_preprocesst::convert_is_identifier_ignorable_int;
1449-
conversion_table["java::java.lang.Character.isIdeographic:(C)Z"]=
1449+
conversion_table["java::java.lang.Character.isIdeographic:(I)Z"]=
14501450
&character_refine_preprocesst::convert_is_ideographic;
14511451
conversion_table["java::java.lang.Character.isISOControl:(C)Z"]=
14521452
&character_refine_preprocesst::convert_is_ISO_control_char;
@@ -1476,7 +1476,7 @@ void character_refine_preprocesst::initialize_conversion_table()
14761476
&character_refine_preprocesst::convert_is_lower_case_char;
14771477
conversion_table["java::java.lang.Character.isLowerCase:(I)Z"]=
14781478
&character_refine_preprocesst::convert_is_lower_case_int;
1479-
conversion_table["java::java.lang.Character.isLowSurrogate:(I)Z"]=
1479+
conversion_table["java::java.lang.Character.isLowSurrogate:(C)Z"]=
14801480
&character_refine_preprocesst::convert_is_low_surrogate;
14811481
conversion_table["java::java.lang.Character.isMirrored:(C)Z"]=
14821482
&character_refine_preprocesst::convert_is_mirrored_char;
@@ -1516,7 +1516,7 @@ void character_refine_preprocesst::initialize_conversion_table()
15161516
&character_refine_preprocesst::convert_is_whitespace_char;
15171517
conversion_table["java::java.lang.Character.isWhitespace:(I)Z"]=
15181518
&character_refine_preprocesst::convert_is_whitespace_int;
1519-
conversion_table["java::java.lang.Character.lowSurrogate:(I)Z"]=
1519+
conversion_table["java::java.lang.Character.lowSurrogate:(I)C"]=
15201520
&character_refine_preprocesst::convert_is_low_surrogate;
15211521

15221522
// Not supported "java::java.lang.Character.offsetByCodePoints:([CIIII)I"
@@ -1528,7 +1528,7 @@ void character_refine_preprocesst::initialize_conversion_table()
15281528
conversion_table["java::java.lang.Character.toChars:(I)[C"]=
15291529
&character_refine_preprocesst::convert_to_chars;
15301530

1531-
// Not supported "java::java.lang.Character.toChars:(I[CI])I"
1531+
// Not supported "java::java.lang.Character.toChars:(I[CI)I"
15321532

15331533
conversion_table["java::java.lang.Character.toCodePoint:(CC)I"]=
15341534
&character_refine_preprocesst::convert_to_code_point;

0 commit comments

Comments
 (0)