Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.1.7
-
None
Description
Getting this error:
java.lang.IncompatibleClassChangeError: Class co.e.Outer does not implement the requested interface org.slf4j.Logger at co.e.Outer$Inner.myMethod(Outer.groovy:19) at co.e.Outer.doSomething(Outer.groovy:13) at co.e.Outer$doSomething.call(Unknown Source)
when running the following code:
package co.e @CompileStatic @Slf4j class Outer { void run() { def m = [:] log.info(m.toString()) new Inner().myMethod(m) } @Slf4j private class Inner { void myMethod(Map m) { log.info(m.toString()) // fails here } } }
It runs fine if I remove the @CompileStatic