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

Fix -Wzero-as-null-pointer-constant warnings in management.cpp

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • None
    • svc
    • b11

      There are several places in management.cpp that are using THROW_ or THROW_MSG_ with a value argument of 0 in a function returning a pointer. This triggers -Wzero-as-null-pointer-constant warnings when enabled. These places should be using THROW_NULL or THROW_MSG_NULL without the value argument.

            kbarrett Kim Barrett
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: