Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
M4
-
None
Description
Whenever a proxied object recycled by JVM, ContextNotActiveException will be fired from:
BeanManagerImpl.getContext(Class<Annotation>) line: 300
NormalScopedBeanInterceptorHandler.getContextualInstance() line: 105
NormalScopedBeanInterceptorHandler.invoke(Object, Method, Method, Object[]) line: 75
ConversationImpl_$$_javassist_1.finalize() line: not available [local variables unavailable]
J9VMInternals.runFinalize(Object) line: 412
We should directly invoke real object's finalize( ) since:
it is not meaningful to find context in for finalize method;
we do not know when jvm will invoke it;
and it is out of concept of any scope.