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

Sergey Bylokhov serb at openjdk.org
Thu Nov 10 23:20:31 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.

I am pretty sure that the NPE reported recently in the comment in JBS is unrelated to the AssertionError reported initially. It is better to file separate issue.

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

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



More information about the client-libs-dev mailing list