JDI: Obsolete reference to java.compiler should be removed

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P5
    • tbd
    • Affects Version/s: 6
    • Component/s: core-svc
    • None
    • generic
    • generic

      in SunCommandLineLauncher in JDK file src/share/classes/com/sun/tools/jdi/SunCommandLineLauncher.java there is a check of property "java.compiler" which is no longer attended to or otherwise supported by the JRE (except for some backward compatibility handling by the JVM). The presence of this reference just prolongs licensee uncertainty about the property status. And since "full speed debugging" was implemented a few releases back I don't think there has been a need to impose the restriction implied by this code in any case. So it should be OK to simply remove this:

              if ((options.indexOf("-Djava.compiler=") != -1) &&
                  (options.toLowerCase().indexOf("-djava.compiler=none") == -1)) {
                  throw new IllegalConnectorArgumentsException("Cannot debug with a JIT compiler",
                                                               ARG_OPTIONS);
              }
      A comment to the effect that this functionality has no bearing on Sun's Java SE would help

            Assignee:
            Unassigned
            Reporter:
            Pete Soper (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: