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

Underline Problem in java.net.URI VM 1.6.0_01

XMLWordPrintable

    • Cause Known
    • x86
    • windows_2003

      FULL PRODUCT VERSION :
      1.6.0_02-b05

      ADDITIONAL OS VERSION INFORMATION :
      reproduced with different windows systems

      A DESCRIPTION OF THE PROBLEM :
      Connecting Problems if char '_' in hostname


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.net.MalformedURLException: invalid authority: //akr_sharepoint:8000/ssssss
      at java.rmi.Naming.intParseURL(Unknown Source)
      at java.rmi.Naming.parseURL(Unknown Source)
      at java.rmi.Naming.lookup("//abc_sharepoint:8000/ssssss")

      It's easy to reproduce "java.net.URI.getHost()" should be the Problem.


      ---------- BEGIN SOURCE ----------
      import java.rmi.Naming;

      public class Test {

      public Test(){
      callLookup("host_name");
      callLookup("hostname");
      }

      private void callLookup(String hostName){
      System.out.println(hostName + " leads to");
      try{
      Naming.lookup("//" + hostName + ":6666/xxxxx");
      }catch(Throwable er){
      er.printStackTrace();
      }
      }

      static public void main(String args[]) {
        new Test();
      }
      }

      ---------- END SOURCE ----------

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 5.0
      The above release value was the last known release where this
      bug was not reproducible. Since then there has been a regression.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: