see also my (not yet published) reply to Ian's reply in the Java- specific post in the GAE/J group.
in short: o the cast in the sample code is correct, it casts the result of get(), not the _cache. o generics are forgotten at runtime (see also the message of the ClassCastException) o don't use new HashMap(_cache) - this creates a copy of the whole cache (the objects themselves are not duplicated, but still this may be expensive - it won't throw an exception as generics are forgotten at runtime)! o you use user.getInstanceID() as your key in put(), but user.getInstance() for get(). This may not deliver the correct result (I don't know what the two methods return - but I assume the results are different). Cheers, Remigius. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. 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-appengine?hl=en.
