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);
}
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);
}
- relates to
-
JDK-6374661 JDI: Obsolete reference to java.compiler should be removed
- Closed