On Wednesday, June 8, 2011 3:50:08 PM UTC+2, Ryan McFall wrote: > > It was through looking through the GWT source that I realized the > source of my error, so that's definitely a good pointer. > > It would have helped me if the error message was: > Invalid request parameterization: > edu.hope.cs.surveys.dao.pojo.Tag must extend EntityProxy > > I think that would be a valid error message, right? Adding "must > extend EntityProxy" would seem to make it quite clear what had gone > wrong.
If it had been the case, the Request would have been declared as Request<T extends BaseProxy>, but it's not, because you can have a Request<List<FooProxy>>, or a Request<String> or Request<Integer> (or Request<List<String>>), which obviously don't extend BaseProxy. If you declared a Request<Date> where you erroneously imported java.sql.Date instead of java.util.Date, having "Invalid Request parameterization: java.sql.Date must extend BaseProxy" would be inaccurate and probably more confusing than without the "must extend". -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TXdTdGMweGdmbkFK. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
