On Wed, 5 Feb 2025 18:40:07 GMT, Rajat Mahajan <rmaha...@openjdk.org> wrote:
> **Issue:** > The JNI method `Java_sun_awt_windows_WTaskbarPeer_setOverlayIcon `calls > `CreateIconFromRaster `that can throw a C++ exception. > > The C++ exception must be caught and must not be allowed to escape the JNI > method. The call to `CreateIconFromRaster `has to wrapped into a try-catch > block. > > **Solution:** > > Added exception handling to make sure any exception from > `CreateIconFromRaster `is handled properly. > > Testing done. This pull request has now been integrated. Changeset: 39cb493c Author: Rajat Mahajan <rmaha...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/39cb493c365778a1e3a6e753b49d8664733a3e26 Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod 8348106: Catch C++ exception in Java_sun_awt_windows_WTaskbarPeer_setOverlayIcon Reviewed-by: abhiscxk, aivanov, azvegint, serb, dmarkov ------------- PR: https://git.openjdk.org/jdk/pull/23470