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

[aix,linux] Avoid comparing 'this' to nullptr

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • hotspot
    • None
    • b20
    • linux, aix

      There are two remaining instances where 'this' is compared with 'nullptr'. This comparison results in the following error message when compiled with clang or xlclang.

      error: 'this' pointer cannot be null in well-defined C++ code; comparison may be assumed to always evaluate to true [-Werror,Wtautological-undefined-compare]

            tsteele Tyler Steele
            tsteele Tyler Steele
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: