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

Add StandardJavaFileManager.getJavaFileObjectsFromPaths overload

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: