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

New macro for conversion to jboolean

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None

      We need a new macro, which simplify conversion to jboolean. It will be useful for fixing parfait warnings.

      #define TO_JBOOLEAN(obj) (jboolean) ((obj) ? JNI_TRUE : JNI_FALSE)
      or
      #define JNU_TO_JBOOLEAN(obj) (jboolean) ((obj) ? JNI_TRUE : JNI_FALSE)
      or
      #define IS_TRUE(obj) ((obj) ? JNI_TRUE : JNI_FALSE)

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: