-
Bug
-
Resolution: Fixed
-
Major
-
Jenkins 1.6.11
Workflow 1.6
The method pointer operator (.&) is entirely broken. The following test:
def bar = 'foo'.&toUpperCase
Results in:
startup failed: General error during canonicalization: java.lang.UnsupportedOperationException
Plus a giant call stack.
The workaround is to instead explicitly create a closure which calls the method, which is syntactically cumbersome and reduces semantic readability.
- is duplicated by
-
JENKINS-45002 Pipeline fails to resume after restart when using Groovy method pointers
-
- Resolved
-
- is related to
-
JENKINS-60636 Using method pointers results in warning
-
- Closed
-
Just one of many exotic Groovy language features not currently supported by the CPS engine.