11u backport missing binary arrow.png: 8224475: JTextPane does not show images in HTML rendering

Baesken, Matthias matthias.baesken at sap.com
Mon Mar 9 08:05:59 UTC 2020


Hi Severin, thanks for the heads up.

The jdk11 downport of 8224475 misses binary file test/jdk/javax/swing/JTextPane/arrow.png , this needs to be added to make the test work.


Bug/webrev :

https://bugs.openjdk.java.net/browse/JDK-8240724

http://cr.openjdk.java.net/~mbaesken/webrevs/8240724_jdk11u/


Thanks, Matthias



> Hi Matthias,
> 
> The JDK 11u backport of 8224475 does not include the arrow.png binary
> file, while the jdk/jdk push included it.
> 
> I was working on the 8u backport and notices an NPE when running the
> regression test from 11u due to arrow.png missing.
> 
> java.lang.NullPointerException
>         at java.desktop/javax.swing.ImageIcon.<init>(ImageIcon.java:217)
>         at
> TestJTextPaneHTMLRendering.createTestUI(TestJTextPaneHTMLRendering.j
> ava:148)
>         at
> TestJTextPaneHTMLRendering.createUI(TestJTextPaneHTMLRendering.java:
> 87)
>         at
> java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java
> :313)
>         at
> java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:77
> 0)
>         at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
>         at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
>         at java.base/java.security.AccessController.doPrivileged(Native Method)
>         at
> java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doInterse
> ctionPrivilege(ProtectionDomain.java:85)
>         at
> java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
>         at
> java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Event
> DispatchThread.java:203)
>         at
> java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDisp
> atchThread.java:124)
>         at
> java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Event
> DispatchThread.java:113)
>         at
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
> ead.java:109)
>         at
> java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThr
> ead.java:101)
>         at
> java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:
> 90)
> 
> It would be great if this could get fixed. Perhaps create an 11u
> specific bug which just adds the binary?
> 
> Thanks,
> Severin



More information about the jdk-updates-dev mailing list