Code Review Request: 7051862: CookiePolicy spec conflicts with CookiePolicy.ACCEPT_ORIGINAL_SERVER

Kurchi Hazra kurchi.subhra.hazra at oracle.com
Wed Jun 5 17:06:37 PDT 2013


Hi,

Please review this change to fix 7051862. For ACCEPT_ORIGINAL_SERVER, 
shouldAccept() throws a NullPointerException for null arguments.
Out of the many options to fix this, I think the best way is to return 
false if either of the arguments is null - based on the fact that
HttpCookie.domainMathes() returns false for null arguments.

  Bug: http://bugs.sun.com/view_bug.do?bug_id=7051862
  Webrev: http://cr.openjdk.java.net/~khazra/7051862/webrev.00/

Thanks,
Kurchi




More information about the net-dev mailing list