Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reincarnated Bug (reminiscent of Issue 350) - ClassCastException with sophisticated generic class hierarchy #29

hamid-nazari opened this issue Aug 7, 2014 · 0 comments


Copy link

@hamid-nazari hamid-nazari commented Aug 7, 2014

JMockit 1.10
TestNG (eclipse plug-in)
JDK 1.8

Some part of the the bug reported previously on Google's issue tracker, Issue 350, which was totally fixed by version 1.9, is back again in version 1.10. Specifically, the test case genericsFailure_ClassCast2, provided by the test suite attached to that reported issue, now fails again with the following error:

FAILED: genericsFailure_ClassCast2(tests.JMockitGenericsFailureTests$BackImpl@5ae63ade)
java.lang.IllegalArgumentException: tests.JMockitGenericsFailureTests$AppImpl is not an interface
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(
    at java.lang.reflect.Proxy$ProxyClassFactory.apply(
    at java.lang.reflect.WeakCache$Factory.get(
    at java.lang.reflect.WeakCache.get(
    at java.lang.reflect.Proxy.getProxyClass0(
    at java.lang.reflect.Proxy.newProxyInstance(
    at tests.JMockitGenericsFailureTests$BackImpl.getApp(
    at tests.JMockitGenericsFailureTests$3.<init>(
    at tests.JMockitGenericsFailureTests.genericsFailure_ClassCast2(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.lang.reflect.Method.invoke(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

No branches or pull requests

2 participants