Hi Piyush,

I wasn't aware of this issue with java.util.Date, there is a related RFE:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6176809

Instead of adding a new public class, what about simply adding a static
unmodifiable() method to o.r.u.DateUtils? Can you provide a patch for this?

I'll take care of improving hashCode() for Cookie and Parameter.

Best regards,
Jerome  

> -----Message d'origine-----
> De : Piyush Purang [mailto:[EMAIL PROTECTED] 
> Envoyé : mercredi 15 novembre 2006 14:21
> À : [email protected]
> Objet : Re: patch for issues reported by findbugs for org.restlet
> 
> Hi Jerome,
> 
> Cookie hashcode needs to be corrected asap (I presume cookies will end
> up in hashmaps quite often).
> 
> Findbugs still issues 8 warning with respect to the mutability of
> java.util.Date objects which is a well known issue see
> (http://discuss.fogcreek.com/joelonsoftware3/default.asp?cmd=s
> how&ixPost=73959&ixReplies=24)
> 
> I suggest to fix it by introducing an o.r.u.ImmutableDate 
> decorating a j.u.Date.
> 
> I can provide a patch by today evening.
> 
> Cheers
> Piyush
> 
> 
> PS: verifying build still takes too long ...

Reply via email to