<div dir="auto">Chen, are you being serious?</div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu 26 Jun 2025 at 16:14, Chen Liang <<a href="mailto:chen.l.liang@oracle.com">chen.l.liang@oracle.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
I don't think this is an AF joke. There is still plan to remove serialization, which is currently taking a somewhat different roadmap.</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
If you pay attention to conferences like JavaOne, you should have noticed that Viktor Klang is working on Marshalling. There is already "Serailzation - A New Hope" from Devoxx 2024 available on YouTube Java channel, and in the upcoming JVMLS there will be a
 "Marshalling: Serialization 2.0" talk as well, both of which can provide you with more details. The problem with JEP 154 was this JEP did not provide a replacement mechanism for serialization, so we plan to resume the process of removing serialization once
 Marshalling is available. During this time, we plan to make minimal changes to serialization, mostly just the most critical fixes, to reduce maintenance burden.</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
For the concerns you list, I believe at least two of them are not valid:</div>
<ol start="1" style="margin-top:0px;margin-bottom:0px;list-style-type:decimal">
<li style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div role="presentation">Antivirus program scans do affect program execution speed significantly; for example, this is especially obvious for building the JDK on Windows. I thought this was written in the OpenJDK guides or documents but
 apparently it isn't. If a program retries an action based on a fixed timeout, the scenario described in the JEP can happen.</div>
</li><li style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<div role="presentation">Building two copies of classes is a valid approach for JDK distributions. For instance, when compact object headers are made no longer experimental, the JDK image, at least that provided by Oracle, comes with
 two copies of CDS archives - one with no compact object headers, and another with that enabled. In project Valhalla, we are already distributing value classes for JEP 401 the same way - one copy for when the runtime is running with no preview feature enabled,
 and another with value classes for when the runtime has preview features enabled.</div>
</li></ol>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Regards,</div>
<div style="font-family:"Calibri Light","Helvetica Light",sans-serif;font-size:12pt;color:rgb(0,0,0)">
Chen Liang</div>
<div id="m_2914135589783657412appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="m_2914135589783657412divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> discuss <<a href="mailto:discuss-retn@openjdk.org" target="_blank">discuss-retn@openjdk.org</a>> on behalf of <a href="mailto:some-java-user-99206970363698485155@vodafonemail.de" target="_blank">some-java-user-99206970363698485155@vodafonemail.de</a> <<a href="mailto:some-java-user-99206970363698485155@vodafonemail.de" target="_blank">some-java-user-99206970363698485155@vodafonemail.de</a>><br>
<b>Sent:</b> Wednesday, June 25, 2025 11:54 AM<br>
<b>To:</b> <a href="mailto:discuss@openjdk.org" target="_blank">discuss@openjdk.org</a> <<a href="mailto:discuss@openjdk.org" target="_blank">discuss@openjdk.org</a>><br>
<b>Cc:</b> Alan Bateman <<a href="mailto:alan.bateman@oracle.com" target="_blank">alan.bateman@oracle.com</a>>; Brian Goetz <<a href="mailto:brian.goetz@oracle.com" target="_blank">brian.goetz@oracle.com</a>><br>
<b>Subject:</b> Explicitly mark JEP 154 / JDK-8046144 as April Fools joke</font>
<div> </div>
</div></div><div dir="ltr">
<div>
<p>Hello,</p>
<p>it seems JEP 154 / JDK-8046144 "Remove Serialization" is an April Fools joke:</p>
<ul>
<li>It was created on 2012/04/01 20:00</li><li>It says "severely-degraded environments, e.g., Microsoft Windows machines running the McAfee Antivirus program"<br>
I doubt that in any official document the JDK maintainers would dare writing this, and even in this April Fools JEP it seems risky.</li><li>It says "available values for serialVersionUID are running out"<br>
To my knowledge the serialVersionUID value is per class, so this seems to be made up (at least to some extent).</li><li>As solution it suggests "build two copies of rt.jar"</li><li>Under "Impact" it says "Twitter: High"</li></ul>
<p><br>
</p>
<p>The main problem is that it is not immediately obvious that this is an April Fools joke, because it appears as regular JEP within the list of other legit JEPs and there is no explicit mention of it being an April Fools joke. The JEP also sounds plausible
 to some extent because there are multiple real flaws with Java Serialization.</p>
<p>This has lead to this JEP being referenced (unironically) in real discussions and also recently in a scientific paper,
<a href="https://arxiv.org/abs/2504.20485" target="_blank">https://arxiv.org/abs/2504.20485</a>.<br>
It could also harm future discussions about removing or refactoring Java Serialization in case it is used as argument that this had already been rejected in the past.</p>
<p>Therefore to avoid any further harm / confusion by this JEP, please:</p>
<ul>
<li>Change JEP 154 to clearly indicate that it is an April Fools joke; ideally by prepending its title with something like "April Fools"</li><li>Change JDK-8046144 in a similar way</li><li><i>Do not delete</i> either of them; it might only cause more confusion [1]</li></ul>
<p><br>
</p>
<p>Kind regards<br>
</p>
<p><br>
</p>
<p>[1] See also JEP 187 and <a href="https://marxsoftware.blogspot.com/2021/09/missing-jeps-145-187.html" target="_blank">
https://marxsoftware.blogspot.com/2021/09/missing-jeps-145-187.html</a><br>
</p>
</div>
</div>

</blockquote></div></div>