Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: tools
    • b14

      See JDK-8150111.

      The other bug discusses how signatures that take Iterable<Path> are problematic, because Path itself implements iterable<Path>.

      This affected setLocationFromPaths and getJavaFileObjectsFromPaths. However only setLocationFromPaths was fixed in 9.

      It would be nice to fix getJavaFileObjectsFromPaths too. Iterable<Path> and Collection<Path> have different erasures, so perhaps we could add getJavaFileObjectsFromPaths(Collection<Path>), deprecate getJavaFileObjectsFromPaths(Iterable<Path>), and add a default implementation that delegates to the new method.

            Assignee:
            Liam Miller-Cushon
            Reporter:
            Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: