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

 


Help: OASIS Mailing Lists Help | MarkMail Help

sca-assembly message

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


Subject: Re: [sca-assembly] NEW ISSUE: Error in example under section 3.3 ExampleImplementation



Logged as: http://www.osoa.org/jira/browse/ASSEMBLY-113

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:  mike_edwards@uk.ibm.com



From: C Vamsi <vamsic007@in.ibm.com>
To: "OASIS Assembly" <sca-assembly@lists.oasis-open.org>
Date: 12/02/2009 13:56
Subject: [sca-assembly] NEW ISSUE: Error in example under section 3.3 Example Implementation





TARGET: sca-assembly-1.1-spec-cd02-Rev4.doc

DESCRIPTION:
The java code in example in section 3.3  Example Implementation is using
(see lines 525-526) a @Property annotation on a String member with name
"currency" and this member is initialized to "USD".  The componentType xml
derived by introspection shows this "USD" as default value for the property
(see line 594).  This is an error, since it is not possible to obtain the
initializer value "USD" by introspection (at least in Java 5).


PROPOSAL:
Remove initialization in java code at line 526 and delete the value "USD"
in line 594.

1. Replace line 526 with the following:

     private String currency;


2. Replace line 594 with the following:

<property name="currency" type="xsd:string"/>




++Vamsi
Apache Tuscany Committer  
http://tuscany.apache.org
Apache Geronimo Committer and Member of PMC  
http://geronimo.apache.org


---------------------------------------------------------------------
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









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








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