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 270667 - The java index is not updated when new module-info is created
Summary: The java index is not updated when new module-info is created
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: Dev
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-17 14:38 UTC by Tomas Zezula
Modified: 2017-05-19 01:51 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 Tomas Zezula 2017-05-17 14:38:29 UTC
The java index is not updated when new module-info is created in the source root.
The error badges are not updated, etc.

Steps to reproduce:
1) Create JFX project - no module-info
2) Project has no error badges
3) New Module-Info
4) Project should get error badges as the newly created module-info does not contain javafx.base nor javafx.controls.

The problem is that there are 2 events: FileListWorks caused by creating the module-info and RootsWork caused by the change of classpath. They come in this order as the classpath is computed from the module-info. For the first Work the JavaCustomIndexer votes to reindex whole root as classpath has changed but the FileListWork is not able to provide allResources. The following RootsWork has allResources but the JavaCustomIndexer is already updated to new classpaths so it votes not to reindex whole root.
Comment 1 Tomas Zezula 2017-05-17 14:55:44 UTC
Fixed jet-main http://hg.netbeans.org/jet-main/rev/a872c99d19b3
Comment 2 Quality Engineering 2017-05-19 01:51:51 UTC
Integrated into 'main-silver', will be available in build *201705190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a872c99d19b3
User: Tomas Zezula <tzezula@netbeans.org>
Log: #270667: The java index is not updated when new module-info is created