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

JDI: Obsolete reference to java.compiler should be removed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P5 P5
    • tbd
    • 6
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: