On Thu, 10 Sep 2026 06:58:08 GMT, Serguei Spitsyn <[email protected]> wrote:

> 1. Null-restricted flat field without a null marker case:
> 
> ```
> value class Point { int x, y;}
> class XXX { Point! point; // null-free; eligible for flat storage without a 
> null marker
> }
> ```

I couldn't the code with following error. Can we use `!`? It does not seem to 
be mentioned in JEP 401.


$ LANG=C 
~/github-forked/jdk/build/linux-x86_64-server-fastdebug/images/jdk/bin/javac 
--release 28 --enable-preview Test2.java
Test2.java:12: error: <identifier> expected
  Point! point;
       ^
Test2.java:12: error: <identifier> expected
  Point! point;
              ^
2 errors

-------------

PR Comment: https://git.openjdk.org/jdk/pull/32310#issuecomment-5615242849

Reply via email to