[
https://issues.apache.org/jira/browse/TUSCANY-1855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Combellack resolved TUSCANY-1855.
--------------------------------------
Resolution: Fixed
Simon Laws has applied this patch as part of SVN check in 581897
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/domain-impl/src/main/java/org/apache/tuscany/sca/domain/impl/SCADomainImpl.java?r1=581897&r2=585979&sortby=date&diff_format=h
Marking as fixed.
> Possible incorrect comparison in SCADomainImpl in the domain-impl project
> -------------------------------------------------------------------------
>
> Key: TUSCANY-1855
> URL: https://issues.apache.org/jira/browse/TUSCANY-1855
> Project: Tuscany
> Issue Type: Bug
> Environment: Tuscany SVN revision #585076
> Linux
> Reporter: Mark Combellack
> Assignee: Simon Laws
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: DomainImplComparisonFix.patch
>
>
> I think there is a possible comparison problem in the SCADomainImpl class in
> the domain-impl project. The code currently has:
> for (QName nodeCompositeName : nodeInfo.getCompositeNames()){
> if (compositeName.equals(nodeCompositeName) ) {
> startNode = true;
> }
> }
>
> if (startNode = true){
> Notice that there is only one equals ('=') character in the if comparison on
> startNode.
> Since this is an assignment, the if statement will always be true.
> Perhaps the code should read:
> if (startNode == true){
--
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]