← Prev in month ← Prev in thread
Next in thread → Next in month →

[NEW ISSUE] @Remotable can only apply to a Class/Interface but statementsin section 8 of Java POJO spec contradict this

From
Mike Edwards <>
Date
2010-07-27T06:33:17+00:00
ID
Thread
[NEW ISSUE] @Remotable can only apply to a Class/Interface but statementsin section 8 of Java POJO spec contradict this
Target:  sca-javaci-1.1-spec-cd02-rev1.doc

Description:

@Remotable annotation is declared to
be valid on a Class/Interface only:

@Target(TYPE)

@Retention(RUNTIME)

public @interface Remotable {

However, wording in Section 8 of the
CD02 Rev1 of the Java POJO specification states:

    remotable attribute of
<interface.java> child element is omitted unless the interface class
has no 

    @Remotable annotation
and there is a @Remotable annotation on the field, setter method or 

    constructor parameter,
in which case the <interface.java> element has remotable="true".

This is a contradiction, since the text
implies that @Remotable annotation can apply to:

- a Field

- a parameter of a setter method or
constructor

Proposal:

Change the definition of the @Remotable
annotation to permit it to apply to Fields and to method

parameters:

@Target(TYPE, FIELD, PARAMETER)

@Retention(RUNTIME)

public @interface Remotable {

Yours,  Mike.

Strategist - Emerging Technologies, SCA & SDO.

Co Chair OASIS SCA Assembly TC.

IBM Hursley Park, Mail Point 146, Winchester, SO21 2JN, Great Britain.

Phone & FAX: +44-1962-818014    Mobile: +44-7802-467431  

Email:  

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number
741598. 

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
← Prev in month ← Prev in thread
Next in thread → Next in month →