RFR 8222815 [lworld/lw2] : Attempts to serialize an inline type should throw NotSerializableException

Roger Riggs Roger.Riggs at oracle.com
Fri May 24 15:58:14 UTC 2019


Hi Chris,

Looks good.

BTW, javac now supports inline classes with normal constructor syntax 
(new Point (10,20))
so the makePoint technique is no longer necessary.  Except that the 
Point/Line do not have one yet.
If you are so inclined you could add those constructors and cleanup the 
use of make*
but that can also happen later.

Thanks, Roger



On 05/18/2019 07:17 AM, Chris Hegarty wrote:
> For LW2, we will not yet have support for serializing inline types.
> Runtime attempts to serialize an inline type should throw
> NotSerializableException.
>
> Issue:
>    https://bugs.openjdk.java.net/browse/JDK-8222815
> Webrev:
>    https://cr.openjdk.java.net/~chegar/valhalla/8222815/
>
> -Chris.
>



More information about the valhalla-dev mailing list