RFR: 8227257: javax/swing/JFileChooser/4847375/bug4847375.java fails with AssertionError

Tejesh R tr at openjdk.org
Thu Nov 10 06:27:35 UTC 2022


On Thu, 10 Nov 2022 06:00:27 GMT, Tejesh R <tr at openjdk.org> wrote:

> Observation found when _JFileChooser_ is instantiated in _WindowsLookAndFeel_ which invokes _getSystemIcon()_ from WindowsFileChooserUI class. Could not find the exact root cause so predicting it to be an issue with icons not loaded where _resolutionVariants_ map is empty in _public Image getResolutionVariant(double width, double height) _. Hence proposing a null check before accessing _getWidth()_. Fix is tested in CI system.

@azuev-java Can please share your comments on the PR.

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

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



More information about the client-libs-dev mailing list