[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [sca-j] NEW ISSUE: Signature of ComponentContext.cast() method - [JAVA-141]
Hi, I have raised a new issue 141 for this. See http://www.osoa.org/jira/browse/JAVA-141 Thanks, Mark > -----Original Message----- > From: Simon Nash [mailto:oasis@cjnash.com] > Sent: 13 March 2009 10:19 > To: OASIS Java > Subject: [sca-j] NEW ISSUE: Signature of ComponentContext.cast() method > > TARGET: Java Common Annotations and APIs > > DESCRIPTION: Signature of ComponentContext.cast() method > > The signature of the ComponentContext.cast() method is currently > defined as follows: > > <B, R extends ServiceReference<B>> R cast(B target) > throws IllegalArgumentException; > > The double parameterization does not make sense, because there > is nothing in the API that extends ServiceReference. > > This form of the API was introduced when we had CallableReference > and ServiceReference. At that time, the signature was: > > <B, R extends CallableReference<B>> R cast(B target) > throws IllegalArgumentException; > > The double parameterization was useful then, because it allowed > either a ServiceReference or a CallableReference to be returned. > > Now that CallableReference and ServiceReference have been merged, > it is confusing and redundant to have this double parameterization. > > PROPOSAL: > > Change the API signature to: > > <B> ServiceReference<B> cast(B target) throws IllegalArgumentException; > > > > --------------------------------------------------------------------- > 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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]