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

Write test to check for compiler error when static method in interface is called via super()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • tools
    • b82
    • Not verified

    Description

      Default methods can be called via A.super.m() to resolve conflicts where A is an interface with a default method m().
      However, since static methods are not inherited, a call to static method via super should give a compiler error.

      Attachments

        Issue Links

          Activity

            People

              sogoel Sonali Goel (Inactive)
              sogoel Sonali Goel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: