Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 253353 - The ClassIndex.getResources() breaks FreeForm project
The ClassIndex.getResources() breaks FreeForm project
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Source
8.1
All All
: P2 (vote)
: 8.1
Assigned To: Tomas Zezula
issues@java
:
Depends on:
Blocks: 252992
  Show dependency treegraph
 
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
:


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


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo