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: ISSUE 39: Revised description and proposal



Revising the description as per the last discussion on the issue (see [1]).

DESCRIPTION:
Java Component Implementation Specification v1.00 - Sec 1.2.4 - Lines 296
to 302:
296 /** Additional property set through a method */
297 public class Impl4 {
298 public String someProperty;
299 public SomeService someReference;
300 public Impl2(String a, SomeService b) {...}
301 @Property public void setAnotherProperty(int x) {...}
302 }

The constuctor name Impl2 in line 300 is not correct.  Also, with the
presence of @Property annotation on setAnotherProperty() in line 301 it is
not clear how someProperty and someReference could be a property and
reference respectively as section 1.2.7 (Semantics of an Unannotated
Implementation) will not be applicable to this example.

PROPOSAL: Correct the constructor name and add comments to clarify how
someProperty and someReference are a property and a reference respectively.
Change lines 296 to 302 as given below:

296 /** Additional property set through a method */
297 public class Impl4 {
298 public String someProperty;  // property specified in component
definition
299 public SomeService someReference;  // reference specified in component
definition
300 public Impl4(String a, SomeService b) {...}
301 @Property public void setAnotherProperty(int x) {...}
302 }

[1] http://lists.oasis-open.org/archives/sca-j/200805/msg00010.html



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