JDK-8202556 : Support pre-1.5 classes in CDS
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 10,11
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2018-05-02
  • Updated: 2018-05-08
  • Resolved: 2018-05-08
Related Reports
Relates :  
Description
Pre-1.5 classes are disabled during CDS dump time:

http://hg.openjdk.java.net/jdk/jdk/file/450d709262c1/src/hotspot/share/classfile/classFileParser.cpp#l5916

because in some cases, the pre-1.5 verification would need to execute Java code (to do some sort of rather mundane string encoding conversion ??). This used to a bad thing because we wanted to avoid executing Java code at dump time. However, now that we are using the Java class loaders anyway during dump time (since JDK 10), it seems no longer necessary to enforce this.

NOTE: we need to check if class constraint support can be support for these classes.
Comments
This is not on our list of current priorities. If there are additional specific customer requirements, we will consider reopening this issue. Closing as WNF.
08-05-2018