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

Macros for checking and returning on exceptions

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b02

      Backports

        Description

        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.

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c58c6b0fbe34
          User: rriggs
          Date: 2014-01-10 16:36:33 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c58c6b0fbe34 User: rriggs Date: 2014-01-10 16:36:33 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c58c6b0fbe34
          User: lana
          Date: 2014-01-28 05:50:56 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c58c6b0fbe34 User: lana Date: 2014-01-28 05:50:56 +0000

            People

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

              Dates

              • Created:
                Updated:
                Resolved: