Reviewers: rjrjr, bobv,

Description:
Issue 6115: RequestFactory: .with(propertyRefs) not always honored

http://code.google.com/p/google-web-toolkit/issues/detail?id=6115

There are many small changes due to reformats with new formatter rules,
sorry for the noise.

I've added 2 tests (testPropert*) for the two use cases I identified
(that we both faced in our app).

In Resolver, I moved the anonymous AutoBeanVisitor in a named inner
class. It records each reference property it resolves, and for the case
of properties requested by the owner it ensures all requested properties
of the reference-type value are resolved too. This behavior is then used
in resolveClientClass in the fastpath that prevents endless recursions
for object graph cycles.

Please review this at http://gwt-code-reviews.appspot.com/1377804/

Affected files:
  M user/src/com/google/gwt/requestfactory/server/Resolver.java
  M user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  M user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
  M user/test/com/google/gwt/requestfactory/shared/SimpleFooRequest.java


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to