Illegal annotations in a service interface class
------------------------------------------------

                 Key: TUSCANY-3289
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3289
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Java Implementation Extension, OASIS Compliance 
- TUSCANY
    Affects Versions: Java-SCA-2.0
            Reporter: Luciano Resende
             Fix For: Java-SCA-2.0


Here's another error test. Do you guys have a list of what's not compliant yet, 
or is it ok if I just keep firing these tests at you?

<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903";
targetNamespace="http://docs.oasis-open.org/ns/opencsa/scatests/200903";
xmlns:test="http://docs.oasis-open.org/ns/opencsa/scatests/200903";
name="TEST_JCA_3011">

<component name="TestClient">
<implementation.composite name="test:TestClient_0002"/>
<service name="TestInvocation">
<interface.wsdl 
interface="http://test.sca.oasisopen.org/#wsdl.porttype(TestInvocation)"/>
<binding.ws/>
</service>
<reference name="reference1" target="TEST_JCA_3011Component1" />
<property name="testName">JCA_3011</property>
</component>

<!-- JCA_3011Service is local to this contribution and contains a forbidden 
annotation.
It is compatible with the Service1 interface from the General_POJO contribution.
-->
<component name="TEST_JCA_3011Component1">
<implementation.java class="org.oasisopen.sca.test.JCA3011serviceImpl"/>
<service name="JCA3011Service">
<interface.java interface="org.oasisopen.sca.test.JCA3011Service"/>
</service>
<property name="serviceName">JCA_3011Service</property>
</component>

</composite>


package org.oasisopen.sca.test;

import org.oasisopen.sca.annotation.Remotable;
import org.oasisopen.sca.annotation.Property;

/**
* A test service interface
* @author DaveBooz
*
*/
@Remotable
public interface JCA3011Service {

/**
* Method for invoking testcase service
* @param input - input parameter(s) as a String
* @return - output data as a String
*/
@Property
public String operation1( String input );

}

The @Property annotation is not allowed in service interface classes. The 
testcase ran successfully, but should not have.

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

Reply via email to