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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • None
    • 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);
      }

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

              Created:
              Updated:
              Resolved: