errael opened a new pull request, #4711:
URL: https://github.com/apache/netbeans/pull/4711
Fix #4704. This applies to both `-source` and `-target`. This information is
used by editor/hints.
With this patch and the following build.gradle excerpt
```
tasks.withType(JavaCompile).each {
it.options.compilerArgs << '--source' << '19'
it.options.compilerArgs << '--target' << '11'
it.options.compilerArgs << '-Xlint:deprecation' << '--enable-preview'
}
sourceCompatibility = 9
targetCompatibility = 9
```
There's

and the following has no errors in the editor.
```
Object o2 = 3;
return switch (o2) {
case Integer i when i >= 0 -> 3; // positive integers
case Integer i -> 4; // negative integers
case default -> 2;
};
```
--
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