On Sun, 28 Jun 2026 19:23:05 GMT, Daniel Gredler <[email protected]> wrote:

> Update code in the package `sun.font` to make use of the `instanceof` pattern 
> variable. Includes `equals` methods and a few methods using 
> `ClassCastException` for flow control.
> 
> While looking through this code, I've noticed a few pre-existing suspicious 
> differences between `equals` and `hashCode` implementations, but have not 
> made any functional changes to fix this (best to address separately, if 
> needed).
> 
> Tests checked locally on Linux, Windows and macOS:
> - make test TEST="jtreg:test/jdk/java/awt/font"
> - make test TEST="jtreg:test/jdk/java/awt/Graphics2D/DrawString"
> 
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK 
> Interim AI Policy](https://openjdk.org/legal/ai).

@prsadhuk please review

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

PR Comment: https://git.openjdk.org/jdk/pull/31702#issuecomment-4986085560

Reply via email to