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

Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 13
    • 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.

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

              Created:
              Updated:
              Resolved: