AFAIK, preview features are production ready, but APIs are evolving and not stable. You can use virtual threads in production Java apps now, with Java 19. Major frameworks will want to hold off until the feature is out of preview and is stable. But for small teams, evolving APIs aren't a big deal, virtual threads are ready to use.
These class files are special; they should not be distributed beyond the control of the developer who chose to use preview features.
about files you generate with --enable-preview.
Also putting preview features into production is impractical unless you control the production environment yourself, since your code will now have both a minimum and maximum JDK version of 19.
9
u/TheMode911 Sep 20 '22
Nothing has been delivered yet, everything is in preview.
Hopefully we will get something in JDK 20.