(file) Paths.get(String) and Path.resolve(String) should support varargs

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 7
    • Component/s: core-libs
    • None
    • generic
    • generic

      Where a path is created from a sequence of names it requires code like following:
        Path file = dir.resolve("images" + fs + "foo.png");
      or
        Path file = dir.resolve("images").resolve("folder.png");

      It has been suggested that FileSystem.getPath(String), and Path.resolve(String) be extended to use varargs so as to support usages such as the following:
        Path file = dir.resolve("images", "folder.png");

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: