Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please support Java 21 #71

Open
vpa1977 opened this issue Feb 2, 2024 · 1 comment
Open

Please support Java 21 #71

vpa1977 opened this issue Feb 2, 2024 · 1 comment

Comments

@vpa1977
Copy link

vpa1977 commented Feb 2, 2024

I was able to compile procyon with Java 21 using release target 8, but have encountered some test failures:

  • SwitchTests.testEnumSwitch - enum switch was decompiled as an ordinal switch
  • ThirdPartyTests.testUnboxToNumber - decompiled code contains Constable, not Number.
  • ThirdPartyTests.testLiteralAssignments - test specifies float numbers with excess precision, Java truncates those since 19.
  • ThirdPartyTests.testOptimizedVariables, testSwitchKrakatau, testWhileLoopsKrakatau - decompiled variable does not match ('b' vs 'x')
@amy-b-cheng
Copy link

Also running into test failures for my application using Java 21 - getting this error:

Could not initialize class com.strobel.assembler.metadata.MetadataSystem java.lang.NoClassDefFoundError: Could not initialize class com.strobel.assembler.metadata.MetadataSystem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants