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

-release option forces StandardJavaFileManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 10
    • 9
    • tools
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: