Package org.jacorb.test.bugs.bugcos370

Source Code of org.jacorb.test.bugs.bugcos370.BugCos370ServerImpl

package org.jacorb.test.bugs.bugcos370;

import org.jacorb.test.orb.AnyServerPOA;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_PARAM;
import org.omg.CORBA.TypeCode;

/**
* @author Alphonse Bendt
*/
public class BugCos370ServerImpl extends AnyServerPOA
{
    public Any bounce_any(Any myAny)
    {
        TypeCode type = myAny.type();

        if (!type.equivalent(NamingAttributes_THelper.type()))
        {
            throw new BAD_PARAM("types are not equivalent: " + type);
        }

        if (!type.equal(NamingAttributes_THelper.type()))
        {
            throw new BAD_PARAM("types are not equal: " + type +  " <> " + NamingAttributes_THelper.type());
        }

        return myAny;
    }
}
TOP

Related Classes of org.jacorb.test.bugs.bugcos370.BugCos370ServerImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.