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

Macros for checking and returning on exceptions

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs
    • None
    • b02

        The checking for exceptions should be consistent within native code.
        The net and pack200 native code uses CHECK_NULL(x) and CHECK_NULL(x, y).

        Similar macros for CHECK_EXCEPTION(env), CHECK_EXCEPTION_NULL(env), and CHECK_EXCEPTION_RETURN(env, y) using (*env)->ExceptionCheck should be added.

        The macros should be promoted to the common/jni_util.h and applied consistently.

              rriggs Roger Riggs
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: