JDK-4483537 : java.net.URL.equals behaviour is wrong for virtual hosts
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2001-07-24
  • Updated: 2001-07-26
  • Resolved: 2001-07-26
Related Reports
Duplicate :  
Description
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.