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

-release option forces StandardJavaFileManager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b31

      Description

      The -release option throws an exception if a JSR199 implementation uses a JavaFileManager instead of a StandardJavaFileManager:
      Error: -release option specified, but the provided JavaFileManager is not a StandardJavaFileManager.

      This basically forces any decent JSR199 implementation to use StandardJavaFileManager even if they don't want to.

      I wonder if StandardJavaFileManager is really necessary. With the -release option you're basically telling Javac to use the appropriate bootclasspath, so Javac can look there first without having to set it in StandardJavaFileManager and then retrieve it from there again.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlahoda Jan Lahoda
              Reporter:
              kbronkho Keimpe Bronkhorst (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: