Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.0-beta-2
-
None
-
None
Description
In the following example, the LOGGER receiver in the info method of the trait doesn't delegate to the class receiver, leading to a runtime error.
import java.util.logging.Logger trait Loggable { static def LOGGER = Logger.getLogger(this.class.name) void info(String msg) { LOGGER.info(msg) } } class Test implements Loggable {} def t = new Test() t.info('foo')