← Prev in month ← Prev in thread
Next in thread → Next in month →

ISSUE-76: Incorrect code in section 6.7.4 examples

From
David Booz <>
Date
2008-09-17T14:17:22+00:00
ID
Thread
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:

Simon Nash <>

Simon Nash <> 

09/15/2008 06:10 PM

To



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

To: 

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
← Prev in month ← Prev in thread
Next in thread → Next in month →