> **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.
Rajat Mahajan has updated the pull request incrementally with one additional commit since the last revision: Update src/java.desktop/windows/native/libawt/windows/awt_Taskbar.cpp Co-authored-by: Alexey Ivanov <alexey.iva...@oracle.com> ------------- Changes: - all: https://git.openjdk.org/jdk/pull/23470/files - new: https://git.openjdk.org/jdk/pull/23470/files/66f0a452..9db93f54 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=23470&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23470&range=01-02 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/23470.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/23470/head:pull/23470 PR: https://git.openjdk.org/jdk/pull/23470