String.lastIndexOf confused by unpaired trailing surrogate
Martin Buchholz
martinrb at google.com
Tue Mar 23 19:17:16 UTC 2010
Deprecation of Surrogate methods is a reasonable choice.
Of course, users are not supposed to use Surrogate,
and they are regularly pestered by javac not to.
I rejected deprecation in favor of "denigration" because there is nothing
actually wrong with the existing methods except that they
are not standardized. In particular, we would never dream
of removing them. Surrogate has the very big advantage over the
new methods in Character of being compatible with prior JDK releases.
Deprecation is generally reserved for APIs that are actively harmful.
Martin
On Tue, Mar 23, 2010 at 11:31, Ulf Zibis <Ulf.Zibis at gmx.de> wrote:
> Ok, sorry and thanks.
>
> Wouldn't "deprecated" be more noticeable?
>
> What about using this message from compiler? :
> warning: Surrogate is Sun proprietary API and may be removed in a future
> release.
> @deprecated Public replacement is {@link Character#isSupplementaryCodePoint}
More information about the core-libs-dev
mailing list