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 237823

Summary: More predicates for single file does not work
Product: ide Reporter: Tomas Zezula <tzezula>
Component: Features On DemandAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: normal CC: dusty
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 222295    
Attachments: Patch file

Description Tomas Zezula 2013-10-30 17:47:39 UTC
When there are more path predicates for single file separated by ',' only one of them is used.
Comment 1 Tomas Zezula 2013-10-30 17:49:00 UTC
Created attachment 141716 [details]
Patch file
Comment 2 Tomas Zezula 2013-10-30 17:49:13 UTC
Added proposed fix.
Comment 3 Jaroslav Tulach 2013-11-21 13:49:45 UTC
I can't recall what was the problem. As such I am not able to write a test and verify the fix fixes something. Can you please remind me, Tomáši?
Comment 4 Tomas Zezula 2013-11-21 18:16:17 UTC
The problem is when having:

project.xpath.pom.xml=project/packaging[contains(text(),'fx')],//executable[contains(text(),'javafxpackager')]

there are 2 xpath for single file: pom.xml but only one of these xpaths is checked (random depending on hash).