Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2454

Groovy does not enforce implementation contract on interface that extends interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5.2
    • None

    Description

      Given a Java interface A with abstract method a(), and an interface B extends A with method b(), it is possible to compile Groovy class BImpl implements B

      { b() }

      . The compiler should complain about unimplemented a(). Explicitly declaring that B implements A, B does catch the error.

      Attachments

        Activity

          People

            paulk Paul King
            jdf@us.ibm.com Jonathan Feinberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: