JEP 370 - text example leads to exception

Maurizio Cimadamore maurizio.cimadamore at
Fri Feb 14 23:26:39 UTC 2020

On 13/02/2020 03:39, Chris T wrote:
> No problem! Nice talk at FOSDEM, Maurizio ;-)!
> One suggestion, for future talks - when it comes to memory layouts 
> please construct an example that is a little bit more complex (by end 
> of the upcoming weekend I will publish one that can be used). I had 
> trouble with bit alignment when working on mine, but I will come back 
> with the details (no bug or anything but more clarity would be 
> beneficial in the docs). In your example (the Point one) the alignment 
> is 32 but that is now always the case... The reason I mention this as 
> an issue is that the Java development community is more "high-level". 
> Believe it or not, bit alignment is not anymore "a thing" with most of 
> us ;-)...

Hey Chris - on alignment there was an issue that was uncovered on 
panama-dev - I think this fix should probably be ported to mainline:

This might make working with layout with padding a bit more tedious than 
intended, although this is probably not what you ran into.

Re: talk suggestion - yes, more realistic examples would probably be 
better - but it's always hard to strike the right balance; if the 
example is more realistic it can be harder to follow, which might not be 
good when you are showing new concepts. But I'll keep that in mind for 
the future - after all this is a new API, and, as it's always the case, 
the more you think about how to explain these concepts and the more you 
do it, the more ways you find to get the message across in an optimal way.


> I will also think about some API enhancements I would like to see as a 
> developer...
> Thanks!
>   Chris T
> On Tue, Feb 11, 2020 at 4:07 AM Maurizio Cimadamore 
> <maurizio.cimadamore at 
> <mailto:maurizio.cimadamore at>> wrote:
>     Thanks Paul!
>     Maurizio
>     On 10/02/2020 17:58, Paul Sandoz wrote:
>     > I modified the JEP with updated code snippets that compile
>     against the latest API in JDK 14 [*].

More information about the core-libs-dev mailing list