Steps to reproduce:
Create an Ant-based NetBeans Module Project
Add a new Action via New -> Action, fill in the forms, make sure the action is registered as a Global Menu Item
The IDE creates a java file. In place of the Menu Bar registration annotation an exception message is printed.
This bug was not present in 11.3