[webbeans-issues] [JBoss JIRA] Created: (WBRI-204) @PreDestroy inherited by session bean not invoked
by Shane Bryzak (JIRA)
@PreDestroy inherited by session bean not invoked
-------------------------------------------------
Key: WBRI-204
URL: https://jira.jboss.org/jira/browse/WBRI-204
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
Section 4.2 of the spec states:
"Suppose a class X is extended directly or indirectly by the bean class of a simple or session bean Y.
* If X declares an initializer method, @PostConstruct method or @PreDestroy method x() then Y inherits x() if and
only if neither Y nor any intermediate class that is a subclass of X and a superclass of Y overrides the method x()."
In the test class org.jboss.jsr299.tck.tests.implementation.enterprise.lifecycle.EnterpriseBeanLifecycleTest, both:
* testSubClassInheritsPreDestroyOnSuperclass() and
* testIndirectSubClassInheritsPreDestroyOnSuperclass() are failing - it seems that the @PreDestroy method is not being invoked for session beans.
--
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, 7 months
[webbeans-issues] [JBoss JIRA] Created: (WBTCK-32) Unproxyable Dependency Exception Test
by Gurkan Erdogdu (JIRA)
Unproxyable Dependency Exception Test
-------------------------------------
Key: WBTCK-32
URL: https://jira.jboss.org/jira/browse/WBTCK-32
Project: JSR-299 TCK
Issue Type: Bug
Reporter: Gurkan Erdogdu
In test class
UnproxyableTest, method testInjectionPointWithUnproxyableTypeWhichResolvesToNormalScopedWebBean
--------------------------
Test fails because no injection point that resolves to FinalTuna_Broken class. To test fails, there must be injection points.
Coverage : 5.4.1 ba)
Classes which are declared final or have final methods cannot be proxied by the container. If an injection point whose declared type cannot be proxied by the container resolves to a bean with a normal scope, an UnproxyableDependencyException is thrown by the container at deployment time
--
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, 8 months