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

Overload JavaCompiler.getStandardFileManager() and Tools.run() to avoid calling with NULL

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Rejected
    • Icon: P4 P4
    • None
    • 7
    • tools
    • generic
    • generic

      In most of the normal usage, we will be calling Standard java file manager as, JavaCompiler.StandardJavaFileManager(null,null,null).
      How about providing one more method getStandardJavaFileManager() which internally calls getStandardJavaFileManager(null,null,null) like

      StandardJavaFileManager getStandardFileManager() {
          getStandardFileManager(null,null,null);
      }

      Also same for Tool.run(), one more method can be added some thing like
      int run(String... arguments) {
              run(null, null, null, arguments);
      }

            jjg Jonathan Gibbons
            savadhansunw Seetharama Avadhanam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: