neilcsmith-net commented on issue #7437:
URL: https://github.com/apache/netbeans/issues/7437#issuecomment-2151950386

   > It was great if netBeans could detect and show the syntactic error. I 
think the switch (){ } looks a lot like a method and something goes wrong when 
parsing.
   
   Well, NetBeans uses javac for parsing, and the same `Unexpected tree` error 
is shown in a notification.  I'm curious that the `JavacParser` call at 
https://github.com/apache/netbeans/blob/master/java/java.source.base/src/org/netbeans/modules/java/source/parsing/JavacParser.java#L742
 doesn't catch the `AssertionError` and wrap it in an `IOException`, which is 
possibly how to read the documentation for that method?? cc/ @lahodaj @mbien - 
thoughts?


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