1

I am using Netbeans 11.2 on Ubuntu 18.04 as snap package. Try to enable --enable-preview in a Maven project as described in the documentation:

enter image description here

I do not see "Additional Compiler Options" in my UI, see below

enter image description here

The referenced issue is merged, so what is wrong here?

Note that building and running the application (using preview features) via Maven from inside Netbeans, is just working fine!

Community
  • 1
  • 1
rmuller
  • 12,062
  • 4
  • 64
  • 92

1 Answers1

1

The referenced issue is merged, so what is wrong here?

While the referenced issue is merged, that doesn't necessarily mean that the fix has been included in NetBeans 11.2, and apparently it hasn't.

If you look at the associated Jira Bug Report, "NETBEANS-2450 javac compiler option --enable-preview doesn't take effect for maven projects", the fix will be applied in NetBeans 12.0.

skomisa
  • 16,436
  • 7
  • 61
  • 102