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 253353 - The ClassIndex.getResources() breaks FreeForm project
Summary: The ClassIndex.getResources() breaks FreeForm project
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 252992
  Show dependency tree
 
Reported: 2015-07-08 09:51 UTC by Tomas Zezula
Modified: 2015-07-09 01:16 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 2015-07-08 09:51:40 UTC
The ClassIndex.getResources() breaks FreeForm project and other projects having mixes source and class files. 

It also returns different values depending on the Set<ResourceType> implementation, for example:

Set<ClassIndex.ResourceType> s = new LinkedHashSet<>();
s.add(ClassIndex.ResourceType.BINARY);
s.add(ClassIndex.ResourceType.SOURCE);
CI.getResources(...,s) -> returns class files but

Set<ClassIndex.ResourceType> s = new LinkedHashSet<>();
s.add(ClassIndex.ResourceType.SOURCE);
s.add(ClassIndex.ResourceType.BINARY);
CI.getResources(...,s) -> returns source files.


Also the javadoc is not very useful.
Comment 1 Tomas Zezula 2015-07-08 09:53:45 UTC
Fixed jet-main 16961e97dfef
Comment 2 Quality Engineering 2015-07-09 01:16:05 UTC
Integrated into 'main-silver', will be available in build *201507090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/16961e97dfef
User: Tomas Zezula <tzezula@netbeans.org>
Log: #253353:The ClassIndex.getResources() breaks FreeForm project