[webbeans-issues] [JBoss JIRA] Created: (WBRI-210) Destroyed beans not removed from normal contexts
by David Allen (JIRA)
Destroyed beans not removed from normal contexts
------------------------------------------------
Key: WBRI-210
URL: https://jira.jboss.org/jira/browse/WBRI-210
Project: Web Beans
Issue Type: Bug
Components: Contexts
Affects Versions: 1.0.0.BETA1
Reporter: David Allen
Assignee: Nicklas Karlsson
Whenever a contextual bean is destroyed, that instance is not to be returned again by the context on later calls to get() per section 8.1 of JSR-299 specification.
The current specification does not actually provide any API to remove the instance from a context. Since any application can add additional contexts, there needs to be a specific API to allow the destroyed beans to removed or to otherwise notify the corresponding context that a bean has been destroyed.
The test which is currently marked ri-broken is DestroyedInstanceReturnedByGetTest.testDestroyedInstanceMustNotBeReturnedByGet().
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-169) Bean type with type variable throws incorrect exception on deployment
by Shane Bryzak (JIRA)
Bean type with type variable throws incorrect exception on deployment
---------------------------------------------------------------------
Key: WBRI-169
URL: https://jira.jboss.org/jira/browse/WBRI-169
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
Fix For: 1.0.0.BETA2
Section 2.2 of the spec says: "Bean types may not declare a type variable. If the type of an injection point is a parameterized type with a type variable, a DefinitionException is thrown by the container at deployment time."
The TCK tests org.jboss.jsr299.tck.tests.definition.deployment.broken.typevariable.ParameterizedTypeInjectionTest and org.jboss.jsr299.tck.tests.definition.deployment.broken.wildcard.WilcardTypeInjectionTest should be throwing a DefinitionException at deployment time, however are throwing an UnsatisfiedDependencyException instead (tests are currently marked as ri-broken).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-193) resolve potential LinkageError
by Takeshi Kondo (JIRA)
resolve potential LinkageError
------------------------------
Key: WBRI-193
URL: https://jira.jboss.org/jira/browse/WBRI-193
Project: Web Beans
Issue Type: Patch
Affects Versions: 1.0.0.BETA1
Reporter: Takeshi Kondo
Priority: Trivial
Some time age, LinkageError is caused by Seam's Javassist ProxyFactory usage.
It same applies to WebBeans.
if possible, make a modification
from
---
ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setSuperclass(getSuperClass();
proxyFactory.setInterfaces(getInterfaces());
return proxyFactory;
to
---
ProxyFactory proxyFactory = new ProxyFactory();
Class<?> superClass = getSuperClass();
if(superClass != Object.class)
{
proxyFactory.setSuperclass(superClass);
}
proxyFactory.setInterfaces(getInterfaces());
return proxyFactory;
---
Apply to this patch,
If proxy target class is interface, generated proxy class name changes
form "org.javassist.tmp.java.lang.Object_$$_javassist_0"
to "org.javassist.tmp.java.util.List_$$_javassist_0".
All interface generated proxy class name is "org.javassist.tmp.java.lang.Object_$$_javassist_(number)"
Because proxy class name pattern is monotone,
duplicate proxy class name, then it causes LinkageError.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months