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.

Bug 238363 - Navigation into the @Produced @Named methods doesn't work well
Summary: Navigation into the @Produced @Named methods doesn't work well
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Expression Language (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-14 11:18 UTC by Martin Fousek
Modified: 2014-01-14 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2013-11-14 11:18:46 UTC
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.
Comment 1 Martin Fousek 2014-01-14 13:40:17 UTC
Fixed in web-main #8574736591ae.