15 May
2012
15 May
'12
5:54 p.m.
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/dbf1e06cc4f949c6f0b5a03c570671... . Thanks, Marius