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 108649

Summary: No way to wait for changes to a Java file to appear in ClassIndex
Product: java Reporter: Andrei Badea <abadea>
Component: SourceAssignee: Jan Jancura <jjancura>
Status: RESOLVED FIXED    
Severity: blocker CC: dkonecny, pjiricka
Priority: P1 Keywords: API
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 93050, 101719    

Description Andrei Badea 2007-07-02 15:12:25 UTC
There is currently no way to wait for the changes made to a Java file (or for a newly created Java file) to appear in
ClassIndex. For example, when creating a new EJB and using the Java EE metadata model to locate all EJBs, the new one
will note be present in the model (even though the model just calls ClassIndex.getElements() and does not rely on the CI
events).
Comment 1 Jan Lahoda 2007-07-02 18:12:27 UTC
Tomas should probably be in charge for this.
Comment 2 Petr Hrebejk 2007-10-01 12:09:52 UTC
As per gentleman agreement.
Comment 3 Jiri Prox 2008-04-11 00:52:03 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 4 David Konecny 2009-05-18 00:51:44 UTC
Any chance this being implemented soon Hanz? Or any suggestions on who to achieve that some other way?

Btw. JEE6 support which is planned for NB6.8 will rely heavily on annotation based meta models as most of the
specification are shifting from XML to annotations (Servlet 3.0, Web Beans, JSF, ...).
Comment 5 Jan Jancura 2009-05-18 14:44:56 UTC
This RFE is not part of any plan.
Comment 6 David Konecny 2009-05-18 21:56:36 UTC
Thanks. I assume it is still valid but I will double check first and get back to you. Do you think off-hand this would
be easy or problematic to support?
Comment 7 David Konecny 2009-05-26 20:52:53 UTC
As mentioned in issue 101719 this has been resolved for 6.7 by Tomas Zezula.