You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Gilbert Kwan <gi...@gmail.com> on 2008/04/11 18:01:39 UTC
Can @ConversationID apply on private variable?
In the spec of "Java Common Annotations and APIs"
(http://www.osoa.org/download/attachments/35/SCA_JavaAnnotationsAndAPIs_V100.pdf?version=1),
line 1710-1711 says
1710 @ConversationID
1711 private String ConversationID;
I tried and got following warning:
Apr 11, 2008 11:50:37 AM
org.apache.tuscany.sca.implementation.java.introspect.impl.JavaIntrospectionHelper
checkInvalidAnnotations
WARNING: Invalid annotation @org.osoa.sca.annotations.ConversationID()
is found on private java.lang.String
org.apache.tuscany.sca.vtest.javaapi.annotations.scope.impl.IServiceImpl.conversationId
Is it a spec or implementation error?
Thanks
Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Can @ConversationID apply on private variable?
Posted by Mike Edwards <mi...@gmail.com>.
Gilbert Kwan wrote:
> In the spec of "Java Common Annotations and APIs"
> (http://www.osoa.org/download/attachments/35/SCA_JavaAnnotationsAndAPIs_V100.pdf?version=1),
> line 1710-1711 says
>
> 1710 @ConversationID
> 1711 private String ConversationID;
>
> I tried and got following warning:
> Apr 11, 2008 11:50:37 AM
> org.apache.tuscany.sca.implementation.java.introspect.impl.JavaIntrospectionHelper
> checkInvalidAnnotations
> WARNING: Invalid annotation @org.osoa.sca.annotations.ConversationID()
> is found on private java.lang.String
> org.apache.tuscany.sca.vtest.javaapi.annotations.scope.impl.IServiceImpl.conversationId
>
> Is it a spec or implementation error?
>
> Thanks
> Gilbert
Gilbert,
The intention was that injection should not occur onto private fields,
for any artifact (Reference, Property, etc).
The spec has errors and they need fixing - we will raise Issues in OASIS
for these.
Yours, Mike.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Can @ConversationID apply on private variable?
Posted by Raymond Feng <en...@gmail.com>.
Hi,
My understanding is that it's bug in the spec for the sample. The same spec
says:
502 1.6.6. Conversations ID
503
504 If a protected or public field or setter method is annotated with
@ConversationID, then the conversation
505 ID for the conversation is injected onto the field
Thanks,
Raymond
--------------------------------------------------
From: "Gilbert Kwan" <gi...@gmail.com>
Sent: Friday, April 11, 2008 9:01 AM
To: <tu...@ws.apache.org>
Subject: Can @ConversationID apply on private variable?
> In the spec of "Java Common Annotations and APIs"
> (http://www.osoa.org/download/attachments/35/SCA_JavaAnnotationsAndAPIs_V100.pdf?version=1),
> line 1710-1711 says
>
> 1710 @ConversationID
> 1711 private String ConversationID;
>
> I tried and got following warning:
> Apr 11, 2008 11:50:37 AM
> org.apache.tuscany.sca.implementation.java.introspect.impl.JavaIntrospectionHelper
> checkInvalidAnnotations
> WARNING: Invalid annotation @org.osoa.sca.annotations.ConversationID()
> is found on private java.lang.String
> org.apache.tuscany.sca.vtest.javaapi.annotations.scope.impl.IServiceImpl.conversationId
>
> Is it a spec or implementation error?
>
> Thanks
> Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org
Re: Can @ConversationID apply on private variable?
Posted by Kevin Williams <kj...@gmail.com>.
The Specification is inconsistent since:
504 If a *protected* or *public* field or setter method is
annotated with @ConversationID, then the conversation
505 ID for the conversation is injected onto the field ...
My guess is that the example has a typo and should actually be:
1710 @ConversationID
1711 protected String ConversationID;
--Kevin
On Fri, Apr 11, 2008 at 10:01 AM, Gilbert Kwan <gi...@gmail.com> wrote:
> In the spec of "Java Common Annotations and APIs"
> (http://www.osoa.org/download/attachments/35/SCA_JavaAnnotationsAndAPIs_V100.pdf?version=1),
> line 1710-1711 says
>
> 1710 @ConversationID
> 1711 private String ConversationID;
>
> I tried and got following warning:
> Apr 11, 2008 11:50:37 AM
> org.apache.tuscany.sca.implementation.java.introspect.impl.JavaIntrospectionHelper
> checkInvalidAnnotations
> WARNING: Invalid annotation @org.osoa.sca.annotations.ConversationID()
> is found on private java.lang.String
> org.apache.tuscany.sca.vtest.javaapi.annotations.scope.impl.IServiceImpl.conversationId
>
> Is it a spec or implementation error?
>
> Thanks
> Gilbert
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org