java.lang.UnsupportedOperationException

class redefinition failed: attempted to change method modifiers

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1398

  • via Google Groups by Hontvári József, 1 year ago
    class redefinition failed: attempted to change method modifiers
  • via Google Groups by Craig Ching, 1 year ago
    class redefinition failed: attempted to change method modifiers
  • class redefinition failed: attempted to change method modifiers
  • Stack trace

    • java.lang.UnsupportedOperationException: class redefinition failed: attempted to change method modifiers at sun.instrument.InstrumentationImpl.redefineClasses0(Native Method) at sun.instrument.InstrumentationImpl.redefineClasses(InstrumentationImpl.java:162) at mockit.internal.startup.Startup.redefineMethods(Startup.java:286) at mockit.internal.startup.Startup.redefineMethods(Startup.java:280) at mockit.internal.mockups.MockClassSetup.applyClassModifications(MockClassSetup.java:101) at mockit.internal.mockups.MockClassSetup.redefineMethodsInClassHierarchy(MockClassSetup.java:58) at mockit.internal.mockups.MockClassSetup.redefineMethods(MockClassSetup.java:43) at mockit.MockUp.redefineMethods(MockUp.java:194) at mockit.MockUp.redefineClassOrImplementInterface(MockUp.java:188) at mockit.MockUp.<init>(MockUp.java:111) at flowers.timemachine.SystemTimeShifter$SystemMock.<init>(SystemTimeShifter.java:141) at flowers.timemachine.SystemTimeShifter.main(SystemTimeShifter.java:101)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 1 year ago
    Unknown user
    3 times, 1 year ago
    1 more bugmates