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

Summary: The ClassIndex.getResources() breaks FreeForm project
Product: java Reporter: Tomas Zezula <tzezula>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 252992    

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