[ 
https://issues.apache.org/jira/browse/WSCOMMONS-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Davanum Srinivas updated WSCOMMONS-45:
--------------------------------------

    Assignee: Sanka Samaranayake

> PolicyUtil.matchByQName defect when lists are the same size
> -----------------------------------------------------------
>
>                 Key: WSCOMMONS-45
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-45
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>            Reporter: David Waite
>         Assigned To: Sanka Samaranayake
>
> The following lines:
>               List larger = (primTermsA.size() > primTermsB.size()) ? 
> primTermsA
>                               : primTermsB;
>               List smaller = (primTermsA.size() < primTermsB.size()) ? 
> primTermsA
>                               : primTermsB;
> Will cause larger and smaller to both be set to primTermsB when the lists are 
> of the same size. This can be solved by changing one of the comparisons to 
> either >= or <=, or (perhaps more ideally for readability) making the 
> statements in an if block.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to