This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
After fixing the issue #200385 the code completion works well now but go to sources navigates users into the return type of the element which is wrong. So for the case: public class Users { @PersistenceContext private EntityManager userDatabase; @SuppressWarnings("unchecked") @Produces @Named @RequestScoped public List<User> getUsers(){ return userDatabase.createQuery("select u from User u").getResultList(); } } It should navigate into this class instead of the List class.
Fixed in web-main #8574736591ae.