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

File static factory to consistently/correctly handle absolute or drive-relative paths

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Duplicate
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      A DESCRIPTION OF THE REQUEST :
        Bugs such as 4418831 and 4242635 show that java.io.File(File, String) and (String, String) don't behave consistently with expectation when the second argument is an absolute or drive-relative (in Windows) path. A new method should therefore be created that deals with these situations in a consistent way and avoids the need for developer's to jump through hoops in order to get simple path joining capabilities (viz-a-viz Python's os.path.join(.) function).

      Or you could just fix the dodgy constructors...

      JUSTIFICATION :
        To make Java better. Less hair loss over inane behaviour is always a good thing.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                ndcosta Nelson Dcosta (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: