Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8348106

Catch C++ exception in Java_sun_awt_windows_WTaskbarPeer_setOverlayIcon

XMLWordPrintable

    • b114
    • 9
    • b12
    • windows

      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.


      Found this problem in code review [1] for JDK-8282862.

      [1] https://github.com/openjdk/jdk/pull/22932#issuecomment-2602772897

            rmahajan Rajat Mahajan
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: