[Webwork-devel] isMethod patch
Brought to you by:
baldree,
rickardoberg
From: Bogdan G. <bo...@bl...> - 2002-04-05 01:29:23
|
Hi, According to the docs, value="second()" will cause WW to look for getSecond() or isSecond(). Now, isSecond() is never called because of a small bug in webwork.util.ValueStack:721. if (methodName.startsWith("get")) methodName = Introspector.decapitalize(methodName.substring(3)); if (name.startsWith("is")) methodName = Introspector.decapitalize(methodName.substring(2)); I attached a patch file that changes name.startsWith("is") in methodName.startsWith("is") I hope it is ok. Regards, Bogdan |