Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2328

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SCA-1.2
    • None
    • None
    • Windows XP

    Description

      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

      Attachments

        Activity

          People

            edwardsmj Mike Edwards
            ashwinjeksani Ashwini Kumar Jeksani
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: