12.1 does not support JDK 15. If it runs on JDK 15, that’s nice, but it
does not officially support it.

Please try your scenario instead in 12.2, currently in beta, which does
support JDK 15.

http://mail-archives.apache.org/mod_mbox/netbeans-dev/202011.mbox/%3cfc423e41-bd3c-e7be-0d26-a4741f6b2...@gmail.com%3E

Gj

On Wed, 11 Nov 2020 at 23:00, Chad Preisler <chad.preis...@gmail.com> wrote:

> Netbeans 12.1 appears to still think text blocks are still a preview
> feature while using JDK 15. I wanted to get this on your radar. Is there
> any way to make the IDE see the text block as valid without preview turned
> on?
>
> I'm using a maven project and the project compiles fine without preview
> turned on, but the IDE still marks the code as an error and gives an option
> to "Enable Preview Feature". When I turn preview features on, I can't run
> an individual unit test in Netbeans. There appears to be some issue with
> the forked maven JDK not getting the preview flag turned on when running
> the test. For that reason I'd prefer to not use the preview feature.
>
> Here is the Netbeans info:
>
> Product Version: Apache NetBeans IDE 12.1
> Java: 15.0.1; OpenJDK 64-Bit Server VM 15.0.1+9
> Runtime: OpenJDK Runtime Environment 15.0.1+9
> System: Linux version 5.3.0-46-generic running on amd64; UTF-8; en_US (nb)
> User directory: /home/chad/.netbeans/12.1
> Cache directory: /home/chad/.cache/netbeans/12.1
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

Reply via email to