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

Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • tools
    • b14

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: