OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-j message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: NEW ISSUE: Catch 22 when trying to prevent property introspection


TARGET: POJO Component Implementation

DESCRIPTION: Catch 22 when trying to prevent property introspection

Section 8.2 of JavaCI states that public and protected fields of
simple types such as "int" are automatically introspected as
SCA properties if the implementation class does not contain any
@Reference or @Property annotations.

This rule means that an implementation class without any SCA properties
or references will accidentally trigger the default introspection
algorithm, with the result that any public or protected "int" fields
will be incorrectly introspected as SCA properties (catch 22).  Because
there are no intended SCA properties or references, the author of the
class cannot add any @Property or @Reference annotations to the class
and is therefore unable to prevent the default introspection algorithm
from being used.

PROPOSAL:

Change the spec to say that the algorithm in section 8.2 only
applies if the implementation class has no @Service, @Property, or
@Reference annotations.  This allows the default introspection
algorithm to be disabled by adding an explicit @Service annotation.



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]