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

allow javac plugins to access/wrap/override the file manager

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 14
    • tools

      It would be good for plugins to have access to the file manager.
      To facilitate this, the following method could be added to com.sun.source.util.Plugin

      JavaFileManager getJavaFileManager(JavaFileManager fm)

      with a default implementation of "return fm;"

      This would allow a plugin to be informed about and possible wrap the file manager used in the compilation, using ForwardingJavaFileManager.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: