<Swing Dev> [jdk17] RFR: 8269269: [macos11] SystemIconTest fails with ClassCastException

Alexander Zuev kizune at openjdk.java.net
Wed Jun 30 01:20:01 UTC 2021


On Tue, 29 Jun 2021 23:51:06 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> One more time would like to highlight that to get the data of the requested image the user need to do one "if" and two "instanceof". Still hope that we can improve this.

We might when the implementation will be complete on all the relevant platforms, then we can be sure that we can provide specific type of an icon like ImageIcon or even MultiResolutionImage - but until then i would tend to use common denominator like simple Icon.

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

PR: https://git.openjdk.java.net/jdk17/pull/178


More information about the swing-dev mailing list