mrj760 commented on issue #8475:
URL: https://github.com/apache/netbeans/issues/8475#issuecomment-2843256210

   Try this. Sorry, my original cause was incorrect. It is in type switches.
   
   
![Image](https://github.com/user-attachments/assets/35dec134-394d-4ead-9c66-9f7733da66e2)
   
   ```
   private class Foo {
       private int field1, field2;
       private static int stat1, stat2;
   
       private void doFoo(int param) {
           switch(this) {
               case Foo foo -> {
                   field1 = 5;
                   field2 = 10;
               }
           }
       }
   
       private void doFooStat(int param) {
           switch(this) {
               case Foo foo -> {
                   stat1 = 5;
                   stat2 = 10;
               }
           }
       }
   }
   ```


-- 
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: notifications-unsubscr...@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org
For additional commands, e-mail: notifications-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to