Multiple contexts with the same Scope are not handled properly -- causing tck failures
--------------------------------------------------------------------------------------
Key: OWB-561
URL: https://issues.apache.org/jira/browse/OWB-561
Project: OpenWebBeans
Issue Type: Bug
Reporter: Kevan Miller
Assignee: Gurkan Erdogdu
Running container tests (not standalone), I'm seeing the following failure in Geronimo:
Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()">
<![CDATA[org.testng.TestException:
Expected an exception in test method org.jboss.jsr299.tck.tests.context.ContextTest.testGetContextWithTooManyActiveContextsFails()
at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
... Removed 18 stack frames]]>
Seems BeanManagerImpl is not handling this case properly. IRC'ed with Mark. Looks like singleContextMap
needs to be cleaned up after the second context is added.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|