Hi devs,
I just committed a new Velocity uberspector that automatically
converts String method arguments to Enum when possible. Please review
it and tell me if there's something wrong.
The idea is to be able to call #someMethod(SomeEnum) with
$obj.someMethod('VALUE')
if SomeEnum.VALUE is a valid constant.
See
https://github.com/xwiki/xwiki-commons/commit/dbf1e06cc4f949c6f0b5a03c57067…
.
Thanks,
Marius