Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4483537

java.net.URL.equals behaviour is wrong for virtual hosts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.1
    • core-libs
    • None
    • x86
    • linux

      The java.net.URL.equals can return true even if URLs denote different resources. It occurs when the hosts have the same InetAddress and the same path. It is often case of virtual webservers so for example http://www.netbeans.org/ is 'equal' to http://openide.netbeans.org.

            ywangsunw Yingxian Wang (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: