mbien opened a new pull request, #8860:
URL: https://github.com/apache/netbeans/pull/8860

   resurrects this old PR https://github.com/apache/netbeans/pull/3440. Rewrote 
parts of it since `TreeShims` is now gone and the impl wasn't complete + added 
tests.
   
   triggers on the javac error and offers to resolve it by adding a default 
case:
   ```java
       private Object error2(Object o) {
           return switch (o) {
               case Integer i -> 3;
           };
       }
   ```
   ->
   ```java
       private Object error2(Object o) {
           return switch (o) {
               case Integer i -> 3;
               default -> throw new IllegalStateException("Unexpected value: " 
+ (o));
           };
       }
   ```
   
   closes https://issues.apache.org/jira/browse/NETBEANS-6380
   closes https://github.com/apache/netbeans/pull/3440


-- 
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

Reply via email to