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

Method::is_valid_method() compares 'this' with NULL

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b05

      Backports

        Description

        Method::is_valid_method() compares 'this' with NULL. The compiler is free to elide this test, since (this == NULL) can never be true; applying an ordinary member function to NULL invokes undefined behavior. This function should be changed to be a static member function.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hseigel Harold Seigel
                Reporter:
                hseigel Harold Seigel
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: