> **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: CATCH_BAD_ALLOC ------------- Changes: - all: https://git.openjdk.org/jdk/pull/23470/files - new: https://git.openjdk.org/jdk/pull/23470/files/9db93f54..5a7cd348 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=23470&range=03 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=23470&range=02-03 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