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

JVM should not throw VerifyError when a private method overrides a final method

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      team

      Backports

        Description

        Accessibility of an "overriding method" should be consistent with the JLS. That means a private method is not deemed to override anything during execution and matches the existing hotspot behavior during method selection in invokevirtual. The verifier would also consider the accessibility and not throw VerifyError if a private method has the same name/descriptor as it superclass' final method.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved: