diff -r 02a46b740866 -r 147b20e60274 src/java.base/share/classes/java/text/SimpleDateFormat.java --- a/src/java.base/share/classes/java/text/SimpleDateFormat.java Thu Jul 12 22:53:35 2018 -0700 +++ b/src/java.base/share/classes/java/text/SimpleDateFormat.java Fri Jul 13 14:04:59 2018 +0530 @@ -831,7 +831,7 @@ break; } } - compiledCode.append((char)(TAG_QUOTE_CHARS << 8 | (j - i))); + encode(TAG_QUOTE_CHARS, j - i, compiledCode); for (; i < j; i++) { compiledCode.append(pattern.charAt(i)); }