Skip to content

Commit

Permalink
Post-fix for #770: restore Java 8 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mrotteveel committed Oct 27, 2023
1 parent 7ce5e0d commit c068372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/org/firebirdsql/jdbc/field/FBStringFieldTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ void setString_surrogatePairs_maxLength() throws Exception {
assertEquals("UTF-8", encoding.getCharsetName(), "Unexpected charset for field");

// character Smiling Face with Open Mouth; uses surrogate pairs
String surrogatePairsValue = Character.toString(0x1f603);
String surrogatePairsValue = new String(Character.toChars(0x1f603));
assertEquals(2, surrogatePairsValue.length(), "Expected string with 2 characters (surrogate pairs)");
field.setString(surrogatePairsValue);

Expand All @@ -823,7 +823,7 @@ void getString_surrogatePairs_maxLength() throws Exception {
assertEquals("UTF-8", encoding.getCharsetName(), "Unexpected charset for field");

// character Smiling Face with Open Mouth; uses surrogate pairs
String surrogatePairsValue = Character.toString(0x1f603);
String surrogatePairsValue = new String(Character.toChars(0x1f603));
assertEquals(2, surrogatePairsValue.length(), "Expected string with 2 characters (surrogate pairs)");
toReturnStringExpectations(surrogatePairsValue, encoding);

Expand Down

0 comments on commit c068372

Please sign in to comment.