jjazzboss opened a new issue, #7702:
URL: https://github.com/apache/netbeans/issues/7702
### Apache NetBeans version
Apache NetBeans 22
### What happened
Code with type/guarded pattern in switch compiles OK, but editor marks an
error "patterns in switch statement are not supported in -source 17"
### Language / Project Type / NetBeans Component
_No response_
### How to reproduce
Create a java 17 code with type patterns, e.g.
```
switch (navCli)
{
case CLI_Ending cli && cli.getData().isStartType() -> { ... }
case default -> {}
}
```
My pom.xml configures the maven-compiler plugin to use release and source=17.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Win 11
### JDK
Adoptium JDK 17 x64
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists