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

javax.tools: please provide a wrapping file manager

XMLWordPrintable

    • generic
    • generic

      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));
          }
          ...
      }

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: