http://gwt-code-reviews.appspot.com/924801/diff/2001/3012 File user/src/com/google/gwt/editor/client/AutoBeanUtils.java (right):
http://gwt-code-reviews.appspot.com/924801/diff/2001/3012#newcode39 user/src/com/google/gwt/editor/client/AutoBeanUtils.java:39: public static Map<String, Object> diff(AutoBean<?> a, AutoBean<?> b) { In the old JSO model, in theory they could of, but in practice, RecordSchema would add every property to a collection, whether it was used or not, so it kept them live. It would be exceedingly difficult to employ any kind of reflective metadata and then prune unused metadata. ;-( On 2010/10/01 23:31:07, rjrjr wrote:
Do you actually use the diff anywhere, or just the fact that things
are
different? Is this another spot to fret about unoptimizable string
based
property games? E.g. I can use this to get the full property list by comparing a bean to an
empty
one.
Really, fundamentally, can unused auto bean properties ever be dead
stripped?
Not saying it's a deal breaker if they can't, but we should be
conscious of the
choice and document it.
http://gwt-code-reviews.appspot.com/924801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors