Hi,

I have came accros the following misbehaving in the EndpointSerializer class.

   public static void serializeEndpoint(Endpoint endpt, OMElement parent) {

        OMElement endpoint = fac.createOMElement ("endpoint", synNS);
        if (endpt.getAddress() != null) {
            endpoint.addAttribute(fac.createOMAttribute(
                "address", nullNS, endpt.getAddress().toString()));
        } else {
            handleException("Invalid Endpoint. Address is required");
        }

        // TODO handle advanced options

        if (parent != null) {
            parent.addChild(endpoint);
        }
    }

Although this method is a get method it dosent return anything (void), in the implementation it declares an OMElement but doesnt return it.

I will put patch to correct this with a jira. Can someone apply that patch please.

Thanks,
Ruwan.

Reply via email to