Import upstream change: HttpCookie.domainMatches("hostname.local", "hostname") should return true

Upstream change:

    7023713: HttpCookie.domainMatches("hostname.local", "hostname") should return true
    Reviewed-by: chegar
    Contributed-by: zhouyx@linux.vnet.ibm.com

    http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/5c1f90dd0405

Bug: 29067535
Test: org.apache.harmony.tests.java.net.HttpCookieTest#test_DomainMatches
Change-Id: I47b59a35e89ddb488554c712a58f645785409bc6
2 files changed