You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Ashwini Kumar Jeksani (JIRA)" <tu...@ws.apache.org> on 2008/05/20 10:44:55 UTC

[jira] Created: (TUSCANY-2328) equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class

equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class
--------------------------------------------------------------------------------------------------------------------------------

                 Key: TUSCANY-2328
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2328
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA BPEL Implementation Extension
    Affects Versions: Java-SCA-1.2
         Environment: Windows XP
            Reporter: Ashwini Kumar Jeksani


In org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor the comparison between PortType done in generateReference & generateService is not proper, it is trying to compare the hascodes of two PortTypes and assigning the WSDLInterface but as the equals method in the PortType is not overridden the hashcodes are different and the WSDLInterface is not set properly.

Problem: anInterface.getPortType().equals(callPT) is not compared properly as the equals method is not overridden and hashcode generated is different.

Solution: Converting the portType to String..     anInterface.getPortType().toString().equals(callPT.toString())

Could anyone commit these changes in the code or provide a better solution to this.

Thanks & Regards,
Ashwini Kumar Jeksani

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


[jira] Assigned: (TUSCANY-2328) equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class

Posted by "Mike Edwards (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Edwards reassigned TUSCANY-2328:
-------------------------------------

    Assignee: Mike Edwards

> equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2328
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2328
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA BPEL Implementation Extension
>    Affects Versions: Java-SCA-1.2
>         Environment: Windows XP
>            Reporter: Ashwini Kumar Jeksani
>            Assignee: Mike Edwards
>
> In org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor the comparison between PortType done in generateReference & generateService is not proper, it is trying to compare the hascodes of two PortTypes and assigning the WSDLInterface but as the equals method in the PortType is not overridden the hashcodes are different and the WSDLInterface is not set properly.
> Problem: anInterface.getPortType().equals(callPT) is not compared properly as the equals method is not overridden and hashcode generated is different.
> Solution: Converting the portType to String..     anInterface.getPortType().toString().equals(callPT.toString())
> Could anyone commit these changes in the code or provide a better solution to this.
> Thanks & Regards,
> Ashwini Kumar Jeksani

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


[jira] Resolved: (TUSCANY-2328) equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class

Posted by "Mike Edwards (JIRA)" <tu...@ws.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Edwards resolved TUSCANY-2328.
-----------------------------------

    Resolution: Fixed

Fix committed in 658449.

Changed BPELImplementationProcessor to compare the QNames of the PortTypes using equals() rather than comparing the PortType elements themselves.

> equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2328
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2328
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA BPEL Implementation Extension
>    Affects Versions: Java-SCA-1.2
>         Environment: Windows XP
>            Reporter: Ashwini Kumar Jeksani
>            Assignee: Mike Edwards
>
> In org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor the comparison between PortType done in generateReference & generateService is not proper, it is trying to compare the hascodes of two PortTypes and assigning the WSDLInterface but as the equals method in the PortType is not overridden the hashcodes are different and the WSDLInterface is not set properly.
> Problem: anInterface.getPortType().equals(callPT) is not compared properly as the equals method is not overridden and hashcode generated is different.
> Solution: Converting the portType to String..     anInterface.getPortType().toString().equals(callPT.toString())
> Could anyone commit these changes in the code or provide a better solution to this.
> Thanks & Regards,
> Ashwini Kumar Jeksani

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


[jira] Commented: (TUSCANY-2328) equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class

Posted by "Mike Edwards (JIRA)" <tu...@ws.apache.org>.
    [ https://issues.apache.org/jira/browse/TUSCANY-2328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12598229#action_12598229 ] 

Mike Edwards commented on TUSCANY-2328:
---------------------------------------

Ashwini,

Thanks for catching this one.

Do you have a test case that shows this problem, please?  I'd be very grateful if you could attach it to this JIRA.

> equals method is not overridden and hashcode generated is different for PortType comparison in BPELImplementationProcessor class
> --------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-2328
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2328
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA BPEL Implementation Extension
>    Affects Versions: Java-SCA-1.2
>         Environment: Windows XP
>            Reporter: Ashwini Kumar Jeksani
>
> In org.apache.tuscany.sca.implementation.bpel.impl.BPELImplementationProcessor the comparison between PortType done in generateReference & generateService is not proper, it is trying to compare the hascodes of two PortTypes and assigning the WSDLInterface but as the equals method in the PortType is not overridden the hashcodes are different and the WSDLInterface is not set properly.
> Problem: anInterface.getPortType().equals(callPT) is not compared properly as the equals method is not overridden and hashcode generated is different.
> Solution: Converting the portType to String..     anInterface.getPortType().toString().equals(callPT.toString())
> Could anyone commit these changes in the code or provide a better solution to this.
> Thanks & Regards,
> Ashwini Kumar Jeksani

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