It would be very helpful if errors in @NamedQuery annotations could be underlined. The information is available to the IDE, since a hint is displayed on the class. (See first screenshot.) However, it would be so much easier to see what is wrong if the issue could be underlined. (See second screenshot with proposal.)
Created attachment 131662 [details]
Current view of named query with issue
Created attachment 131663 [details]
Proposed view of named query with issue
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.
Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss