The workaround for GWT HashSet transport.

  // this wont work
  java.util.HashSet<Long> hs = jdoIds;

  // work around
  private HashSet<Long> getChildren() {
    if (jdoIds == null || jdoIds.size() == 0) {
      return null;
    }
    java.util.HashSet<Long> r = new java.util.HashSet<Long>();
    Iterator<Long> itr = jdoIds.iterator();
    while (itr.hasNext()) {
      Long l = itr.next();
      if (l != null) {
        r.add(l);
      }
    }
    return r;
  }


Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/SlXJM72IP2cJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to