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

No IAE from com.sun.deploy.net.proxy.DeployProxySelector.connectFailed

XMLWordPrintable

    • b57
    • generic
    • generic
    • Verified



      Name: vsR10238 Date: 05/25/2004


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b51
      JCK : JCK1.5-runtime (b19,b21)
      Platform[s] : generic
      switch/Mode : plugin
      JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/1.5/project/data_reports/owners.jto
      Falling test[s]:
               api/java_net/ProxySelector/index.html#Misc [connectFailed001]

      Javadoc API specification for method
          ProxySelector.connectFailed(URI, SocketAddress, IOException)
      specifies that IllegalArgumentException is to be thrown when either of argument of this method is null.

      The problem was fixed in the default J2SE ProxySelector (sun.net.spi.DefaultProxySelector) as 4937962.

      But the problem persists when the test is executed in Java plugin because
      com.sun.deploy.net.proxy.DeployProxySelector
      which is returned from ProxySelector.getDefault()
      does not contain those fixes.

      com.sun.deploy.net.proxy.DeployProxySelector.connectFailed
      should be updated like in sun.net.spi.DefaultProxySelector:

           public void connectFailed(URI uri, SocketAddress sa, IOException ioe) {
               if (uri == null || sa == null || ioe == null) {
                   throw new IllegalArgumentException("Arguments can't be null.");
               }
           }

      Please, see 4937962 for more details.

      JCK1.5-runtime test api/java_net/ProxySelector/index.html#Misc test fails
      in plugin mode because of this problem.

      Test source location:
      =====================
      /java/re/jck/1.5/promoted/beta2/b19/binaries/JCK-runtime-15/tests/api/java_net/ProxySelector/MiscTests.java

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b51-week4/jck15/sparc/Solaris_8_sparc_O_W__linux-1/workDir/api/java_net/ProxySelector/index_Misc.jtr


      Specific machine info:
      ======================
      Hostname: linux-1
      OS: Solaris 8 (sparc) (O/W)



      ======================================================================

            dgu Dennis Gu (Inactive)
            vshsunw Vsh Vsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: