On 6/5/25 16:13, Kenneth Fogel wrote: > Thank you for your suggestions. In the end this is what worked: > > In the project Properties->Build->Compiling turn off Compile on Save any volunteers wanting to open a PR which disables COS by default for ant projects?
It is well known for causing all kinds of seemingly unrelated issues. Its off for maven projects, was never implemented for gradle and is basically unmaintained. I pasted the given snippet into a maven project, switched it to JDK 25 and it worked, did the same as "compact source file" (JEP 512), added --enable-preview / JDK 25 via file properties and it worked too. NB 26 will have to see --enable-preview, since it ships nb-javac based on JDK 24. It has no way to know that "compact source files" went final in JDK 25 which isn't even released yet. -mbien --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists