RFR and sponsor: 8248231: deserializeLambda created with wrong encoding if platform encoding not UTF-8

Andrew Leonard andrew_m_leonard at uk.ibm.com
Fri Jun 26 10:39:08 UTC 2020


just realized, wrong maillist! will re-submit to compiler-dev..

Andrew Leonard
Java Runtimes Development
IBM Hursley
IBM United Kingdom Ltd
internet email: andrew_m_leonard at uk.ibm.com 




From:   Andrew Leonard/UK/IBM
To:     jdk-dev at openjdk.java.net
Date:   26/06/2020 11:36
Subject:        RFR and sponsor: 8248231: deserializeLambda created with 
wrong encoding if platform encoding not UTF-8


Hi,
Please can I request a sponsor and review for the fix to bug JDK-8248231? 
(https://bugs.openjdk.java.net/browse/JDK-8248231)
webrev for review: http://cr.openjdk.java.net/~aleonard/8248231/webrev.00/

The problem with incorrect encoding of deserializeLambda was discovered by 
the openj9 VM team on a platform where the default encoding is not UTF-8 
(eg.EBCDIC platforms), which eluded to the problem that the 
deserializeLambda was not been encoded correctly when the lambda char did 
not map to an ASCII compatible range. The fix testcase replicates the 
problem by using a suitable UTF-8 char that does not map.

Many thanks
Andrew

Andrew Leonard
Java Runtimes Development
IBM Hursley
IBM United Kingdom Ltd
internet email: andrew_m_leonard at uk.ibm.com 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



More information about the jdk-dev mailing list