Thursday, February 23, 2023

Caused by: java.lang.UnsupportedOperationException: PermittedSubclasses requires ASM9

After attempting to upgrade Spring Boot from version 2.7.3 to version 3.0.2, I encountered this error. I spent a few hours searching on Google to try to figure out the cause of the error. Eventually, I realized that the error was related to the version of Gradle that I was using. At the time, I had been using Gradle version 7.3.3. However, once I updated to Gradle version 8.0.1, the error was successfully resolved.

I also updated distributionUrl in as shown below

Note - After above changes i removed .idea folder and restarted my intellij