Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.3.1, 2.3.6
-
None
-
None
Description
When using @Synchronized('mylock'), but failing to declare mylock in class, compile fails with bug.
import groovy.transform.* @CompileStatic class A { @Synchronized("mylock") void sync() { } } def a = new A()
Typical error :
BUG! exception in phase 'canonicalization' in source unit '/path/to/test.groovy' unexpected NullpointerException