groovy

Groovy does not enforce implementation contract on interface that extends interface

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.5
  • Fix Version/s: 1.5.2
  • Labels:
    None
  • Number of attachments :
    0

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.

Activity

Hide
Jonathan Feinberg added a comment -

That was quick!

Show
Jonathan Feinberg added a comment - That was quick!
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: