[
https://issues.apache.org/jira/browse/GERONIMO-5748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan resolved GERONIMO-5748.
----------------------------
Resolution: Fixed
Fix Version/s: 3.0
Commit changes to trunk At revision: 1055346, thanks, Fang Shenhao,
> Defects in ThreadSingletonServiceAdapter
> ----------------------------------------
>
> Key: GERONIMO-5748
> URL: https://issues.apache.org/jira/browse/GERONIMO-5748
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: OpenEJB
> Environment: Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Reporter: Shenghao Fang
> Assignee: Shenghao Fang
> Fix For: 3.0
>
> Attachments: GERONIMO-5748.patch
>
>
> 2 defects found in ThreadSingletonServiceAdapter:
> 1. ClassCastException on ThreadSingletonServiceAdapter: 69
> {code:borderStyle=solid}
> // The type of old is WebBeansContext, we need to create a new OWBContext
> wrapper instance.
> startupObject.getAppContext().set(OWBContext.class, (OWBContext) old);
> {code}
> 2. Incorrect judgement on ThreadSingletonServiceAdapter: 96
> {code:borderStyle=solid}
> // The type of oldContext is expected to be WebBeansContext instead of Map.
> 95 public void contextExited(Object oldContext) {
> 96 if (oldContext != null && !(oldContext instanceof Map)) throw new
> IllegalArgumentException("Expecting a Map<String, Object> not " +
> oldContext.getClass().getName());
> 97 GeronimoSingletonService.contextExited((WebBeansContext)
> oldContext);
> 98 }
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.