Integrated: 8370160: NumericShaper allows illegal ranges

Phil Race prr at openjdk.org
Thu Oct 30 18:06:38 UTC 2025


On Sat, 18 Oct 2025 05:05:48 GMT, Phil Race <prr at openjdk.org> wrote:

> This is a follow-on to 8365077: java.awt.font.NumericShaper violates equals/hashCode contract
> 
> The factory method to construct a contextual shaper from a bitmask will happily store illegal, unspecified bits.
> So there are still ways to create instances which violate the contract.
> 
> This isn't possible with the enum approach. We should align these two. And we should document it.
> 
> Additionally the behaviour of eliminating an value which is of lesser precedence is also something we should specify.
> 
> CSR : https://bugs.openjdk.org/browse/JDK-8370161

This pull request has now been integrated.

Changeset: 4b315111
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4b315111493ac65511890bc2127489ceee693915
Stats:     17 lines in 2 files changed: 15 ins; 0 del; 2 mod

8370160: NumericShaper allows illegal ranges

Reviewed-by: serb, psadhukhan, kizune

-------------

PR: https://git.openjdk.org/jdk/pull/27884


More information about the client-libs-dev mailing list