Remove checking of -Djava.compiler in src/jdk.jdi/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: None
    • Component/s: core-svc
    • None
    • b16

      SunCommandLineLauncher.java currently throws an exception if it finds that the long outdated 'java.compiler' system property is set anything else than "none".

      Since debugging clearly works with JIT compiler these days, it should be safe to remove this check:

      if ((options.indexOf("-Djava.compiler=") != -1) &&
          (options.toLowerCase().indexOf("-djava.compiler=none") == -1)) {
          throw new IllegalConnectorArgumentsException("Cannot debug with a JIT compiler",
                                                       ARG_OPTIONS);
      }

            Assignee:
            Eirik Bjørsnøs
            Reporter:
            Eirik Bjørsnøs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: