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-76: Incorrect code in section 6.7.4 examples


http://www.osoa.org/jira/browse/JAVA-76

Dave Booz
STSM, BPM and SCA Architecture
Co-Chair OASIS SCA-Policy TC and SCA-J TC
"Distributed objects first, then world hunger"
Poughkeepsie, NY (845)-435-6093 or 8-295-6093
e-mail:booz@us.ibm.com
Inactive hide details for Simon Nash <oasis@cjnash.com>Simon Nash <oasis@cjnash.com>


          Simon Nash <oasis@cjnash.com>

          09/15/2008 06:10 PM


To

sca-j@lists.oasis-open.org

cc


Subject

[sca-j] NEW ISSUE: Incorrect code in section 6.7.4 examples

Resending with correct subject line.

-------- Original Message --------
Subject: Incorrect code in section 6.7.4 examples
Date: Mon, 15 Sep 2008 22:17:13 +0100
From: Simon Nash <oasis@cjnash.com>
To: sca-j@lists.oasis-open.org

TARGET: Java Common Annotations and APIs, WD 04, section 6.7.4

DESCRIPTION: Incorrect code in section 6.7.4 examples

1. On line 556, the getCallback() call should say getService().
   This is correct in line 548.

2. On line 567, the code shows the invocation of a static method
     ComponentContext.getRequestContext()
   This method isn't static and requires a ComponentContext instance
   that was set by injection.

PROPOSAL:

1. Replace line 556 by:

   MyCallback myCallback = callback.getService();

2. Replace lines 564 through 567 by:

   @Context ComponentContext context;

   public void someMethod() {

       MyCallback myCallback =
           context.getRequestContext().getCallback();




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


GIF image



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