RE: [sca-j] NEW ISSUE: Catch 22 when trying to prevent property introspection

From
Mark Combellack <>
Date
2009-08-27T12:10:32+00:00
ID
Thread
RE: [sca-j] NEW ISSUE: Catch 22 when trying to prevent property introspection
Hi Simon,

I have raised this new issue as JAVA-181. See:

http://www.osoa.org/jira/browse/JAVA-181

Thanks,

Mark

> -----Original Message-----
> From: Simon Nash [mailto:]
> Sent: 26 August 2009 23:39
> To: OASIS Java
> Subject: [sca-j] 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.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this mail list, you must leave the OASIS TC that
> generates this mail.  Follow this link to all your TCs in OASIS at:
> https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php