[jira] Updated: (GERONIMO-2204) ProxyMethodInterceptor doesn't handle finalize appropriately

2006-11-14 Thread Matt Hogstrom (JIRA)
 [ http://issues.apache.org/jira/browse/GERONIMO-2204?page=all ]

Matt Hogstrom updated GERONIMO-2204:


Fix Version/s: Wish List
   (was: 1.2)
   (was: 1.1.x)
Affects Version/s: 1.1.1
   1.1.2
   1.1.x
   1.2

Moving out to later release for fix.

> ProxyMethodInterceptor doesn't handle finalize appropriately
> 
>
> Key: GERONIMO-2204
> URL: http://issues.apache.org/jira/browse/GERONIMO-2204
> Project: Geronimo
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: kernel
>Affects Versions: 1.2, 1.1, 1.1.1, 1.1.x, 1.1.2
>Reporter: David Jencks
> Assigned To: David Jencks
>Priority: Minor
> Fix For: Wish List
>
>
> A user noticed that while debugging in eclipse (or idea with 
> break-on-exceptions turned on) this method from ProxyMethodInterceptor throws 
> UnsupportedOperationException when finalize is called on a proxy object:
> public final Object intercept(final Object object, final Method method, 
> final Object[] args, final MethodProxy proxy) throws Throwable {
> ProxyInvoker gbeanInvoker;
> int interfaceIndex = proxy.getSuperIndex();
> synchronized (this) {
> if (gbeanInvokers == null) {
> throw new DeadProxyException("Proxy is no longer valid");
> }
> gbeanInvoker = gbeanInvokers[interfaceIndex];
> }
> if (gbeanInvoker == null) {
> throw new UnsupportedOperationException("No implementation 
> method: objectName=" + abstractName + ", method=" + method);
> }
> return gbeanInvoker.invoke(abstractName, args);
> }
> This appears to be harmless since the proxy doesn't implement finalize, but 
> annoying.  We could fix this by explicitly ignoring the finalize method in 
> the code above, possibly by installing a suitable FinalizeInvoker, or by 
> using a CallbackFilter with  a Noop or SerizializableNoop callback (the 
> strategy used by spring aop).
> Is this worth fixing? Which way would be best? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (GERONIMO-2204) ProxyMethodInterceptor doesn't handle finalize appropriately

2006-08-01 Thread Kevan Miller (JIRA)
 [ http://issues.apache.org/jira/browse/GERONIMO-2204?page=all ]

Kevan Miller updated GERONIMO-2204:
---

Fix Version/s: 1.1.x
   (was: 1.1.1)

> ProxyMethodInterceptor doesn't handle finalize appropriately
> 
>
> Key: GERONIMO-2204
> URL: http://issues.apache.org/jira/browse/GERONIMO-2204
> Project: Geronimo
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: kernel
>Affects Versions: 1.1
>Reporter: David Jencks
> Assigned To: David Jencks
>Priority: Minor
> Fix For: 1.2, 1.1.x
>
>
> A user noticed that while debugging in eclipse (or idea with 
> break-on-exceptions turned on) this method from ProxyMethodInterceptor throws 
> UnsupportedOperationException when finalize is called on a proxy object:
> public final Object intercept(final Object object, final Method method, 
> final Object[] args, final MethodProxy proxy) throws Throwable {
> ProxyInvoker gbeanInvoker;
> int interfaceIndex = proxy.getSuperIndex();
> synchronized (this) {
> if (gbeanInvokers == null) {
> throw new DeadProxyException("Proxy is no longer valid");
> }
> gbeanInvoker = gbeanInvokers[interfaceIndex];
> }
> if (gbeanInvoker == null) {
> throw new UnsupportedOperationException("No implementation 
> method: objectName=" + abstractName + ", method=" + method);
> }
> return gbeanInvoker.invoke(abstractName, args);
> }
> This appears to be harmless since the proxy doesn't implement finalize, but 
> annoying.  We could fix this by explicitly ignoring the finalize method in 
> the code above, possibly by installing a suitable FinalizeInvoker, or by 
> using a CallbackFilter with  a Noop or SerizializableNoop callback (the 
> strategy used by spring aop).
> Is this worth fixing? Which way would be best? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Updated: (GERONIMO-2204) ProxyMethodInterceptor doesn't handle finalize appropriately

2006-07-27 Thread David Jencks (JIRA)
 [ http://issues.apache.org/jira/browse/GERONIMO-2204?page=all ]

David Jencks updated GERONIMO-2204:
---

Fix Version/s: 1.1.1
   1.2
 Assignee: David Jencks  (was: Dain Sundstrom)

Fixed in 1.1.1, needs search for other places this fix might be appropriate and 
application to 1.2

> ProxyMethodInterceptor doesn't handle finalize appropriately
> 
>
> Key: GERONIMO-2204
> URL: http://issues.apache.org/jira/browse/GERONIMO-2204
> Project: Geronimo
>  Issue Type: Bug
>  Security Level: public(Regular issues) 
>  Components: kernel
>Affects Versions: 1.1
>Reporter: David Jencks
> Assigned To: David Jencks
>Priority: Minor
> Fix For: 1.2, 1.1.1
>
>
> A user noticed that while debugging in eclipse (or idea with 
> break-on-exceptions turned on) this method from ProxyMethodInterceptor throws 
> UnsupportedOperationException when finalize is called on a proxy object:
> public final Object intercept(final Object object, final Method method, 
> final Object[] args, final MethodProxy proxy) throws Throwable {
> ProxyInvoker gbeanInvoker;
> int interfaceIndex = proxy.getSuperIndex();
> synchronized (this) {
> if (gbeanInvokers == null) {
> throw new DeadProxyException("Proxy is no longer valid");
> }
> gbeanInvoker = gbeanInvokers[interfaceIndex];
> }
> if (gbeanInvoker == null) {
> throw new UnsupportedOperationException("No implementation 
> method: objectName=" + abstractName + ", method=" + method);
> }
> return gbeanInvoker.invoke(abstractName, args);
> }
> This appears to be harmless since the proxy doesn't implement finalize, but 
> annoying.  We could fix this by explicitly ignoring the finalize method in 
> the code above, possibly by installing a suitable FinalizeInvoker, or by 
> using a CallbackFilter with  a Noop or SerizializableNoop callback (the 
> strategy used by spring aop).
> Is this worth fixing? Which way would be best? 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira