...
New JDK 14 and 15-Specific Java Language Features
Code coloring. Keywords "sealed", "non-sealed", and "permits" are highlighted conforming to the existing styles of all other Java keywords.
- Sealed color and formatting: https://github.com/apache/netbeans/pull/2282
As IDE Netbeans will be supporting following features for sealed type introduced in JDK-15 as preview feature.
- Auto completion for Sealed Types: https://github.com/apache/netbeans/pull/2283
a) Code coloring- Keywords sealed, non-sealed and permits are highlighted slimier to other older keywords.
b) Code formatting for "sealed" type. Extended the Java code formatting feature to include "sealed" and "permits" clauses for the first time.
c) Auto-completion for "sealed" type. Added keyword "sealed" and "non-sealed" before "class" declaration. Added "permits" only in the allowed location, i.e., the "permits" clause is not allowed to be put before "extends" and "implements" clause, if present.
- Fixed Record Formatting issue with use of annotation: https://github.com/apache/netbeans/pull/2391
- Fixed issue: refactor record rename & move record file to other package: https://github.com/apache/netbeans/pull/2310
...