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: @Constructor value attribute should not be optional


TARGET: Java Common Annotations and APIs

DESCRIPTION: @Constructor value attribute should not be optional

The current description of the @Constructor attrbute says that the
value attribute is optional.  However, without this attribute, there
is no reliable way of determining the property or reference names.
The Java constructor parameter names cannot be used, because these
are not normally available via Java introspection.

PROPOSAL:

The following line numbers refer to the JavaCAA CD01 document.

1. Replace lines 1014 to 1016 by

    public @Interface Constructor {
        String[] value();
    }

2. In line 1021, replace "value(optional)" by "value".

3. On line 1023, add a new sentence "The length of the array MUST be
    the same as the number of constructor parameters."

4. Replace line 1032 by

    @Constructor("someProperty")




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