[ 
https://issues.apache.org/jira/browse/TUSCANY-1451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12584717#action_12584717
 ] 

Vamsavardhana Reddy commented on TUSCANY-1451:
----------------------------------------------

There was nothing to fix actually, except that the spec originally said:

374 member type. If the basetype is an interface with an @Remotable or @Service 
annotation then the
375 memberis defined as a reference. Otherwise, it is defined as a property.

which resulted in HeuristicPojoProcessor.isReferenceType() look for @Service 
annotation as well on the interface.

The effort in this case was to add the test.


> Fix the algorithm to determine references for an unannotated java class
> -----------------------------------------------------------------------
>
>                 Key: TUSCANY-1451
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1451
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Java Implementation Extension
>    Affects Versions: Java-SCA-Next
>            Reporter: Raymond Feng
>            Assignee: Raymond Feng
>             Fix For: Java-SCA-Next
>
>         Attachments: TUSCANY-1451-testcase.patch, TUSCANY-1451.patch
>
>
> http://www.osoa.org/display/Main/Errata+for+Java+Component+Implementation+V1.00
> 4. Fix and clarify algorithm for determining references of an unannotated 
> POJO (section 1.2.7)
> Replace the algorithm on lines 369-377 with the following:
> 1) If the Java type is an interface annotated with @Remotable, then it's a
> reference.
> 2) Otherwise, if the Java type is an array whose element type is an
> interface annotated with @Remotable, then it's a reference.
> 3) Otherwise, if the Java type is a java.util.Collection or a 
> sub-interface
> or sub-class of it, if the parameterized type of the collection is an
> interface annotated with @Remotable, then it's a reference.
> 4) Otherwise it's a property.

-- 
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