geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shenghao Fang (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5748) Defects in ThreadSingletonServiceAdapter
Date Wed, 05 Jan 2011 03:06:45 GMT
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


2 defects found in ThreadSingletonServiceAdapter:

1. ClassCastException on  ThreadSingletonServiceAdapter: 69

startupObject.getAppContext().set(OWBContext.class, (OWBContext) old);

Here the type of old is WebBeansContext, we need to create a new OWBContext wrapper instance.

2. Incorrect judgement on ThreadSingletonServiceAdapter: 96
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    }

Here the type of oldContext is expected to be WebBeansContext instead of Map.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message