Is it possible to catchException protected methods?

23 views
Skip to first unread message

Tomasz Kalkosiński

unread,
Mar 26, 2014, 12:07:29 PM3/26/14
to catch-excep...@googlegroups.com
Hi

I have a problem with catchException clause with protected methods. is it a known limitation or am I doing something wrong?

I get error like this:

java.lang.IllegalArgumentException: Protected method: parsePayment(Ljava/lang/String;)Lcom/company/Payment;
at org.mockito.cglib.proxy.MethodProxy.invoke(MethodProxy.java:197)
at com.googlecode.catchexception.internal.ExceptionProcessingInterceptor.intercept(ExceptionProcessingInterceptor.java:57)
at com.company.Payment$$EnhancerByMockitoWithCGLIB$$93906d33.parsePayment(<generated>)

My version: Catch exception 1.0.4

Regards,
Tomasz Kalkosiński


rw...@gmx.de

unread,
Mar 27, 2014, 6:53:12 PM3/27/14
to catch-excep...@googlegroups.com
Hi Tomasz

I am not aware of such a limitation.

I commented on issue 15.

https://code.google.com/p/catch-exception/issues/detail?id=15

Please reply there.

Cheers
Rod
Reply all
Reply to author
Forward
0 new messages