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

StandardJavaFileManager::setLocationFromPaths() spec contains an error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 17
    • tools
    • b28

    Backports

      Description

        The following specification
        https://docs.oracle.com/en/java/javase/16/docs/api/java.compiler/javax/tools/StandardJavaFileManager.html#setLocationFromPaths(javax.tools.JavaFileManager.Location,java.util.Collection)
        says:

        Implementation Requirements:
            The default implementation converts each path to a file and calls getJavaObjectsFromFiles

        Actually OpenJDK implementation calls `setLocation()` with an iterable over given paths lazily converted to files.

        Attachments

          Issue Links

            Activity

              People

                jlahoda Jan Lahoda
                dbessono Dmitry Bessonov
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: