Details
Description
class Example { static byte[] hash(byte[] bytes) { bytes } static class Nested { def getCacheKey(byte[] payload) { hash(payload) // hash(payload as byte[]) fails as well // Example.hash(payload) works } } } new Example.Nested().getCacheKey("bar".bytes)
fails with
groovy.lang.MissingMethodException: No signature of method: static Example.hash() is applicable for argument types: (ArrayList) values: [[98, 97, 114]] Possible solutions: hash([B), each(groovy.lang.Closure), wait(), any(), wait(long), is(java.lang.Object) at Example$Nested.methodMissing(Script1.groovy) at Example$Nested.getCacheKey(Script1.groovy:7) at Example$Nested$getCacheKey.call(Unknown Source) at Script1.run(Script1.groovy:14)