ComponentContext.getRequestContext() does NOT return null when there's no
request
---------------------------------------------------------------------------------
Key: TUSCANY-2250
URL: https://issues.apache.org/jira/browse/TUSCANY-2250
Project: Tuscany
Issue Type: Bug
Components: Java SCA Core Runtime
Reporter: Yee-Kang Chang
The specification states the below for ComponentContext.getRequestContext():
"getRequestContext() - Returns the context for the current SCA service request,
or null if there is no current request or if the context is unavailable."
A composite-scoped component annotated with @EagerInit was defined. In its
@Init method, attempt was made to retrieve the RequestContext via
ComponentContext.getRequestContext(). A RequestlContextImpl object that threw
Exception when its method was invoked was returned when null was expected.
The test case that illustrates is in the patch posted via JIRA 2249.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]