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

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

    Details

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

      Description

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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: