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

(fs) Path::toAbsolutePath should specify if an absolute path has a root component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • core-libs
    • None
    • generic
    • generic

      Path.getRoot() javadoc says:

      Returns the root component of this path as a Path object, or null if this path does not have a root component.

      Returns:
      a path representing the root component of this path, or null

      If somePath.toAbsolutePath().getRoot() is called, can users assume getRoot won't return null - at least for the standard Unix and Windows file system provider

            bpb Brian Burkhalter
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: