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

CHECK_NULL and CHECK_EXCEPTION macros cleanup

    Details

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

      Backports

        Description

        The macros in jni_util.h should have JNU_ prefix, rename:
         - CHECK_NULL, CHECK_NULL_RETURN
         - CHECK_EXCEPTION, CHECK_EXCEPTION_RETURN

          Issue Links

            Activity

            Hide
            rriggs Roger Riggs added a comment -
            The macros should use the common defensive form of do { ...} while (0)
            Show
            rriggs Roger Riggs added a comment - The macros should use the common defensive form of do { ...} while (0)
            Hide
            rriggs Roger Riggs added a comment - - edited
            The JNU prefix is needed only for macros with an Env argument.

            The CHECK_NULL and CHECK_NULL_RETURN macros have a more general use
            and are fine without the prefix.
            Show
            rriggs Roger Riggs added a comment - - edited The JNU prefix is needed only for macros with an Env argument. The CHECK_NULL and CHECK_NULL_RETURN macros have a more general use and are fine without the prefix.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/fb89dc4fe8da
            User: rriggs
            Date: 2014-02-03 22:01:30 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/fb89dc4fe8da User: rriggs Date: 2014-02-03 22:01:30 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/fb89dc4fe8da
            User: lana
            Date: 2014-02-11 21:05:42 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/fb89dc4fe8da User: lana Date: 2014-02-11 21:05:42 +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: