/[classpath]/classpath/java/net/URL.java
ViewVC logotype

Diff of /classpath/java/net/URL.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.48 by mark, Sat Jul 2 20:32:39 2005 UTC revision 1.49 by mark, Thu Nov 17 10:58:47 2005 UTC
# Line 408  public final class URL implements Serial Line 408  public final class URL implements Serial
408              // The 1.2 doc specifically says these are copied to the new URL.              // The 1.2 doc specifically says these are copied to the new URL.
409              host = context.host;              host = context.host;
410              port = context.port;              port = context.port;
             file = context.file;  
411              userInfo = context.userInfo;              userInfo = context.userInfo;
             if (file == null || file.length() == 0)  
               file = "/";  
412              authority = context.authority;              authority = context.authority;
413            }            }
414        }        }
# Line 423  public final class URL implements Serial Line 420  public final class URL implements Serial
420          protocol = context.protocol;          protocol = context.protocol;
421          host = context.host;          host = context.host;
422          port = context.port;          port = context.port;
         file = context.file;  
423          userInfo = context.userInfo;          userInfo = context.userInfo;
424          if (file == null || file.length() == 0)          if (spec.indexOf(":/", 1) < 0)
425            file = "/";            {
426                file = context.file;
427                if (file == null || file.length() == 0)
428                  file = "/";
429              }
430          authority = context.authority;          authority = context.authority;
431        }        }
432      else // Protocol NOT specified in spec. and no context available.      else // Protocol NOT specified in spec. and no context available.

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26