Re: [gwt-contrib] Re: Issue 5549: fix is/has support for boolean properties (issue1272801)
Argh. I forgot about this and it wasn't on a 2.3 issue tracker. I'll merge the extra things that this fixes into the patch I sent out. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Issue 5549: fix is/has support for boolean properties (issue1272801)
Do similar changes need to be made in Editor, and are you up for that? Bob, are you able to take this review? On Sun, Jan 9, 2011 at 5:01 AM, t.bro...@gmail.com wrote: http://gwt-code-reviews.appspot.com/1272801/diff/1/3 File user/src/com/google/gwt/autobean/server/BeanMethod.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/3#newcode52 user/src/com/google/gwt/autobean/server/BeanMethod.java:52: String inferName(Method method) { Similar to AutoBeanMethod but using Java reflection. Also, contrary to AutoBeanMethod, it doesn't decapitalize the name. Note that actually only the GET.inferName is ever called. http://gwt-code-reviews.appspot.com/1272801/diff/1/6 File user/src/com/google/gwt/autobean/server/ProxyAutoBean.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/6#newcode66 user/src/com/google/gwt/autobean/server/ProxyAutoBean.java:66: Class? returnType = method.getReturnType(); Oops, I moved that line before factoring inferName into BeanMethod and forgot to undo the move afterwards. http://gwt-code-reviews.appspot.com/1272801/diff/1/8 File user/src/com/google/gwt/requestfactory/server/ReflectiveServiceLayer.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/8#newcode248 user/src/com/google/gwt/requestfactory/server/ReflectiveServiceLayer.java:248: return domainClass.getMethod(get + capitalizedProperty); Should some kind of caching be added? (MapClass?,MapString,Method) http://gwt-code-reviews.appspot.com/1272801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 5549: fix is/has support for boolean properties (issue1272801)
http://gwt-code-reviews.appspot.com/1272801/diff/1/3 File user/src/com/google/gwt/autobean/server/BeanMethod.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/3#newcode52 user/src/com/google/gwt/autobean/server/BeanMethod.java:52: String inferName(Method method) { Similar to AutoBeanMethod but using Java reflection. Also, contrary to AutoBeanMethod, it doesn't decapitalize the name. Note that actually only the GET.inferName is ever called. http://gwt-code-reviews.appspot.com/1272801/diff/1/6 File user/src/com/google/gwt/autobean/server/ProxyAutoBean.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/6#newcode66 user/src/com/google/gwt/autobean/server/ProxyAutoBean.java:66: Class? returnType = method.getReturnType(); Oops, I moved that line before factoring inferName into BeanMethod and forgot to undo the move afterwards. http://gwt-code-reviews.appspot.com/1272801/diff/1/8 File user/src/com/google/gwt/requestfactory/server/ReflectiveServiceLayer.java (right): http://gwt-code-reviews.appspot.com/1272801/diff/1/8#newcode248 user/src/com/google/gwt/requestfactory/server/ReflectiveServiceLayer.java:248: return domainClass.getMethod(get + capitalizedProperty); Should some kind of caching be added? (MapClass?,MapString,Method) http://gwt-code-reviews.appspot.com/1272801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors