java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Mocking static methods in Java system classes - Jayway
    via by Unknown author,
  • Problem creating mock using PowerMock
    via by Ali Gohar,
  • GitHub comment 300#124349541
    via GitHub by johanhaleby
    ,
  • Not possible to mock GL from JOGL
    via by robert.varttinen,
  • mock final class: powermock + easymock + testng
    via Stack Overflow by Atul
    ,
    • java.lang.IllegalArgumentException: replica.java.lang.System$$PowerMock0 is not an interface at java.lang.reflect.Proxy.getProxyClass(Proxy.java:362) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:12) at org.easymock.internal.MocksControl.createMock(MocksControl.java:37) at org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2212) at org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2134) at org.powermock.api.easymock.PowerMock.mockStatic(PowerMock.java:287)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    14 more bugmates