JDK-8141211 : Convert TraceExceptions to Unified Logging
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-11-02
  • Updated: 2024-11-15
  • Resolved: 2015-12-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b103Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The -XX:+TraceExceptions flag must be updated to the unified logging framework, i.e. -Xlog:exceptions. The current flag, because it is product-level, will be aliased to the UL option.
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/0c82805adfc5 User: lana Date: 2016-01-27 21:42:23 +0000
27-01-2016

URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/0c82805adfc5 User: coleenp Date: 2015-12-22 23:13:54 +0000
22-12-2015

[~dholmes] For now, we're not deprecating the -XX flag. I don't know whether it will be done in the future, but the point of the alias table is to allow it to continue to be used. As for the info level, I can't personally speak to the reasoning; I'm just following the original proposal. Most of the flags were specified debug level, but this one happened to be info.
09-12-2015

BTW although I'm quite happy to see this map to the info level this seems quite inconsistent in relation to other flags that have mapped to the debug level. This logging will be quite noisy.
08-12-2015

Do we deprecate the -XX flag at the same time?
08-12-2015

[~rriggs] I'm glad you agree with the aliasing! I do, though, feel obliged to mention that for this particular option, the UL version is pretty straightforward. Since all the logging is done on the "info" level, the user literally only needs the argument "-Xlog:exceptions" to get all the logging currently available through "-XX:+TraceExceptions". And then they can tack on requests for decorators and/or other logging tags to that one argument. Regardless, I'm glad that for this option, both the legacy and the new-framework camps are happy.
08-12-2015

The replacement is so much less intuitive than the current command line flag. At least the alias will be will make the feature accessible.
08-12-2015