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

javax.tools: please provide a wrapping file manager

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: tools
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Please provide a wrapping file manager, for example:

      class WrappingJavaFileManager implements JavaFileManager {
          /** all calls are forwarded to this file manager */
          protected final JavaFileManager fileManager;
          protected FileObject wrap(FileObject fo) { return fo; }
          protected FileObject unwrap(FileObject fo) { return fo; }

          public FileObject getFileForInput(JavaFileManager.Location location, String packageName, URI relativeName) {
              return wrap(fileManager.getFileForInput(location, packageName, relativeName));
          }
          public String inferBinaryName(JavaFileManager.Location location, JavaFileObject file) {
              return fileManager.inferBinaryName(location, unwrap(file));
          }
          ...
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                ahe Peter Ahe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: