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

JDI: Obsolete reference to java.compiler should be removed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Not an Issue
    • Affects Version/s: 6
    • Fix Version/s: tbd_major
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: