Default method setupSpec in interface not working #665

Open
guenhter opened this Issue Oct 18, 2016 · 0 comments

Projects

None yet

1 participant

@guenhter

Issue description

Java 8 default methods are not considered in specs (setupSpec).

How to reproduce

Make a java 8 interface with a default method called setupSpec.
Implement this Interface in a groovy-spec and execute it: The setupSpec-Method is not called.

It doesn't matter if the method in the interface is
static void setupSpec() {
or
default void setupSpec() {

Java/JDK

java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)

Groovy version

2.4.7:indy

Build tool version

Gradle


Gradle 2.14.1

Operating System

Mac OS X

IDE

IntelliJ 2016.2.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment