{"id":436,"date":"2007-08-29T21:43:09","date_gmt":"2007-08-30T03:43:09","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/archives\/000436"},"modified":"2007-08-29T21:43:09","modified_gmt":"2007-08-30T03:43:09","slug":"beware-collections-with-gwt-14-final","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/436","title":{"rendered":"Beware collections with GWT 1.4 Final"},"content":{"rendered":"<p>I just upgraded our application to GWT 1.4.60, aka 1.4 Final.  The upgrade was for the most part, pretty smooth.  Only one issue reared its head.  I have a number of objects that are Serializable that contain other Serializable objects.  I had not marked them with the @gwt.typeArgs javadoc metadata, and things had worked just fine in GWT 1.4.10 (RC1).  However, with 1.4 Final, I kept getting an InvocationException.<\/p>\n<p>These tend to be real pains, because I&#8217;ve never seen them raised in code I write.  Instead, they seem to arise from misconfiguration.  Last time I saw one, I was compiling against the wrong version of gwt-servlet.jar.<\/p>\n<p>This time, I hadn&#8217;t marked the contents of various Sets and Maps with the contents (using the aforementioned @gwt.typeArgs markup).  I received warnings at compile time about that, but had received warnings with RC1 as well.  I had, in typical developer fashion, noticed that the code still worked and thus ignored the warnings.Putting that markup in my code seemed to solve the problem.<\/p>\n<p>There&#8217;s one thread on the groups about something similar to this.  Here&#8217;s the <a href=\"http:\/\/code.google.com\/p\/google-web-toolkit\/issues\/detail?id=1569\">tracking issue<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just upgraded our application to GWT 1.4.60, aka 1.4 Final. The upgrade was for the most part, pretty smooth. Only one issue reared its head. I have a number [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-gwt"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":0,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}