diff --git a/doc/release/CHANGES.txt b/doc/release/CHANGES.txt index b0c568675..a352a1977 100644 --- a/doc/release/CHANGES.txt +++ b/doc/release/CHANGES.txt @@ -20,6 +20,13 @@ Seven digit bug numbers are from the old Sun bug database, which is no longer available. + CHANGES IN THE 2.0.2 RELEASE + ---------------------------- +The following bugs have been fixed in the 2.0.2 release. + +E 528 CompactFormatter precision and surrogate pairs + + CHANGES IN THE 2.0.1 RELEASE ---------------------------- The following bugs have been fixed in the 2.0.1 release. diff --git a/mail/src/main/java/com/sun/mail/util/logging/CompactFormatter.java b/mail/src/main/java/com/sun/mail/util/logging/CompactFormatter.java index 7a1a2fb96..50d9a648f 100644 --- a/mail/src/main/java/com/sun/mail/util/logging/CompactFormatter.java +++ b/mail/src/main/java/com/sun/mail/util/logging/CompactFormatter.java @@ -1,6 +1,6 @@ /* - * Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved. - * Copyright (c) 2013, 2019 Jason Mehrens. All rights reserved. + * Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2021 Jason Mehrens. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0, which is available at @@ -21,8 +21,9 @@ /** * A plain text formatter that can produce fixed width output. By default this - * formatter will produce output no greater than 160 characters wide plus the - * separator and newline characters. Only specified fields support an + * formatter will produce output no greater than 160 characters + * (Unicode code points) wide plus the separator and newline characters. Only + * specified fields support an * {@linkplain #toAlternate(java.lang.String) alternate} fixed width format. *

* By default each CompactFormatter is initialized using the @@ -33,8 +34,10 @@ * used. *

* * @author Jason Mehrens @@ -112,10 +115,12 @@ public CompactFormatter(final String format) { * and a relevant stack trace element if available; otherwise, an empty * string is used. *
  • {@code message|thrown} The message and the thrown properties joined - * as one parameter. This parameter supports + * as one parameter. Width and precision are by Unicode code points. This + * parameter supports * {@linkplain #toAlternate(java.lang.String) alternate} form.
  • *
  • {@code thrown|message} The thrown and message properties joined as - * one parameter. This parameter supports + * one parameter. Width and precision are by Unicode code points. This + * parameter supports * {@linkplain #toAlternate(java.lang.String) alternate} form.
  • *
  • {@code sequence} the * {@linkplain LogRecord#getSequenceNumber() sequence number} if the given @@ -128,10 +133,12 @@ public CompactFormatter(final String format) { * {@linkplain #formatError(LogRecord) error message} without any stack * trace.
  • *
  • {@code message|error} The message and error properties joined as one - * parameter. This parameter supports + * parameter. Width and precision are by Unicode code points. This parameter + * supports * {@linkplain #toAlternate(java.lang.String) alternate} form.
  • *
  • {@code error|message} The error and message properties joined as one - * parameter. This parameter supports + * parameter. Width and precision are by Unicode code points. This parameter + * supports * {@linkplain #toAlternate(java.lang.String) alternate} form.
  • *
  • {@code backtrace} only the * {@linkplain #formatBackTrace(LogRecord) stack trace} of the given @@ -148,17 +155,19 @@ public CompactFormatter(final String format) { *