eclipse-aspectj / aspectj

Other
303 stars 86 forks source link

AspectJ Internal Error: unable to add stackmap attributes. Unsupported class file major version 61 #175

Closed Ashish-Pandey-Imprivata closed 2 years ago

Ashish-Pandey-Imprivata commented 2 years ago

When trying to use AspectJ version 1.9.9 (or 1.9.9.1) with JDK 17, I am getting below error:

AspectJ Internal Error: unable to add stackmap attributes. Unsupported class file major version 61

I have seen related errors that report issue with "version 58" or "version 60" etc e.g. https://bytemeta.vip/repo/allure-framework/allure2/issues/1378, but haven't found how to resolve this JDK17 specific issue.

kriegaex commented 2 years ago

Please add a link to a project reproducing the problem. Thank you. I cannot debug prose without code. My preliminary working hypothesis is that somehow am older AspectJ compiler version has crept into your build.

kriegaex commented 2 years ago

@Ashish-Pandey-Imprivata, because you did not respond within 11 days after I responded the very same day you created the issue, I am closing this issue as invalid. I will consider reopening it, if you provide the MCVE I requested.