Ah, if only test cases were that simple ... :-)

As it turns out, CompositeReference (as an extension of ReferenceExtension) needs to pass a reference interface class to its parent ctor, which seems most appropriately obtained from the service contract it is given. This does not seem to be very generic, not mention the fact that ServiceContract is an abstract class, not an interface and not directly instantiable either, so the test case cannot be very generic either.

So much for that, thoughts?

----- Original Message ----- From: "Jim Marino (JIRA)" <[email protected]>
To: <[email protected]>
Sent: Monday, October 02, 2006 4:48 PM
Subject: [jira] Commented: (TUSCANY-767) NPE in CompositeReference.java when service is defined using interface wsdl


[ http://issues.apache.org/jira/browse/TUSCANY-767?page=comments#action_12439312 ]

Jim Marino commented on TUSCANY-767:
------------------------------------

Ignacio was going to add some testcases to verify behavior and I'll apply.

NPE in CompositeReference.java when service is defined using interface wsdl
---------------------------------------------------------------------------

                Key: TUSCANY-767
                URL: http://issues.apache.org/jira/browse/TUSCANY-767
            Project: Tuscany
         Issue Type: Bug
         Components: Java SCA Core
   Affects Versions: Java-M2
           Reporter: Rick Rineholt
        Assigned To: Jim Marino
           Priority: Blocker
            Fix For: Java-M2

        Attachments: OperationInvocationHandlers.patch


If a service is defined using interface wsdl the service contract does not have an interface class this results in org.apache.tuscany.core.implementation.composite.CompositeReference getting an NPE.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to