java.lang.UnsupportedOperationException: class redefinition failed: attempted to change method modifiers

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Unknown author, 1 year ago
via Stack Overflow by Male
, 1 year ago
class redefinition failed: attempted to change method modifiers
via GitHub by Anon10W1z
, 2 years ago
class redefinition failed: attempted to add a method
via GitHub by ChaosData
, 1 year ago
class redefinition failed: attempted to change the schema (add/remove fields)
via Stack Overflow by green
, 2 years ago
class redefinition failed: attempted to change the schema (add/remove fields)
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.(MockUp.java:111)
at flowers.timemachine.SystemTimeShifter$SystemMock.(SystemTimeShifter.java:141)
at flowers.timemachine.SystemTimeShifter.main(SystemTimeShifter.java:101)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.