JDK-8254192 : ExtraSharedClassListFile contains extra white space at end of line
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • Submitted: 2020-10-07
  • Updated: 2020-10-22
  • Resolved: 2020-10-15
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 16
16 b21Fixed
Related Reports
Relates :  
Description
Somewhere in test framework for CDS the line in ExtraSharedClassList file is added '\f' at end of a line. This is found when working on jdk-8247536 for test case  DumpClassListWithLF.java, it led to the method type verification failed since the second part of method type length is 2 not 1. 

With this fixed, the code in src/java.base/share/classes/jdk/internal/misc/CDS.java:
Verification first does not need to trim the string first.
            
Comments
Changeset: 546620bb Author: Yumin Qi <minqi@openjdk.org> Date: 2020-10-15 16:47:06 +0000 URL: https://git.openjdk.java.net/jdk/commit/546620bb
15-10-2020

The ExtraClassListFile is generated using PrintStream which uses println(string) to print a line. The code in question is in classListParser. Removing ending white spaces should move before LambdaFormInvokers::append, so the line for a Java String already trimmed.
14-10-2020