Skip to content

Commit

Permalink
Fix literal escaping.
Browse files Browse the repository at this point in the history
This (surprisingly?) did not affect existing bound API (some non-bound API
was affected).
  • Loading branch information
Atsushi Eno committed Aug 8, 2012
1 parent b194dc3 commit b3a7563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion JavaClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ String escapeLiteral (String s)

String doEscapeLiteral (StringBuilder s, int i)
{
s.replace (i, i + 1, String.format ("\\u%1$x04" + (int) s.charAt (i)));
s.replace (i, i + 1, String.format ("\\u%1$04X", (int) s.charAt (i)));
i += 4;
for (;i < s.length (); i++)
if (s.charAt (i) < 0x20 || 0xFF <= s.charAt (i))
Expand Down

0 comments on commit b3a7563

Please sign in to comment.