JDK-8064375 : Change certain errors to warnings in CDS output
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8u40,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-11-07
  • Updated: 2015-06-03
  • Resolved: 2014-11-11
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 8 JDK 9
8u40Fixed 9 b42Fixed
Description
In several places in normal CDS output certain messages are reported as errors. With these messages displayed as errors, VM continues normally and CDS sharing works. This could be confusing and possibly lead engineers investigating issues in the field in the wrong direction. 
Please consider changing these error messages to warning messages. 

Details: 
[1]
Allocated shared space: 27394048 bytes at 0x3e4f0000
Loading classes to share ...
Preload Error: Cannot find javax/swing/JComponent$2
Preload Error: Cannot find javax/swing/RepaintManager$1$1
Preload Error: Cannot find javax/swing/plaf/metal/MetalLookAndFeel$MetalLazyValue
Preload Error: Cannot find javax/swing/plaf/metal/MetalLookAndFeel$MetalLazyValue$1
Preload Error: Cannot find javax/swing/text/AbstractDocument$InsertStringResult 

[2] 
'Removed error class'  -> 'Warning: removed class' 
Comments
Thank you Boris Molodenkov for raising this issue.
07-11-2014