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

File should check if separator needed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.1
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      sparc
    • OS:
      solaris_2.5
    • Verification:
      Not verified

      Description

      When composing a File from a path and a name, the constructor
      should check if the path already ends in a separator, to avoid getting
      double separators between path and name.


         public File(String path, String name) {
      this((path != null) ? path + separator + name : name);
         }

        Attachments

          Activity

            People

            • Assignee:
              djbrown David Brown (Inactive)
              Reporter:
              jjg Jonathan Gibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: