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

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

      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.

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

              Created:
              Updated:
              Resolved: