[ 
https://issues.apache.org/jira/browse/TUSCANY-2191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vamsavardhana Reddy updated TUSCANY-2191:
-----------------------------------------

    Attachment: TUSCANY-2191.patch

TUSCANY-2191.patch:

Log a warning instead of throwing an IllegalServiceDefinitionException.  With 
this patch, this exception class does not seem to be used anywhere other than 
the testcase.  So, it can either be marked as deprecated for now or deleted 
altogether.

> A @Service annotation with no attributes causes exception
> ---------------------------------------------------------
>
>                 Key: TUSCANY-2191
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2191
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Core Runtime
>    Affects Versions: Java-SCA-Next
>            Reporter: Kevin Williams
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-2191.patch
>
>
> Line 1635 of the Java Annotations spec says:
>    A @Service annotation with no attributes is meaningless, it is the same as 
> not having the annotation there at all.
> However, the presence of the the annotation without attributes results in the 
> following:
> org.osoa.sca.ServiceRuntimeException: org.osoa.sca.ServiceRuntimeException: 
> org.apache.tuscany.sca.contribution.service.ContributionResolveException: 
> org.apache.tuscany.sca.implementation.java.introspect.impl.IllegalServiceDefinitionException:
>  No interfaces specified
>       at 
> org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(SCADomain.java:264)
>       at 
> org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(SCADomain.java:69)

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


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

Reply via email to