You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We here propose to preview it for a fourth time with two changes: Enhance the
definition of unconditional exactness,
and apply tighter dominance
checks in switch constructs. These changes enable the compiler to identify a wider
range of coding errors, although a small number of switch constructs that were
previously legal will now be rejected.
that would allow downstream projects to test against the latest versions even with PMD
we would not add syntax/grammer/parser support for new language constructs yet (which are anyway not known yet)
on the other hand, the problem seems to be just an outdated asm library:
java.lang.IllegalArgumentException: Unsupported class file major version 70
at org.objectweb.asm.ClassReader.<init> (ClassReader.java:200)
Conclusion: Won't do this. For commons-compress, it uses pmd targetJdk 1.8. The only reason, why the build failed with java 26-ea was indeed the outdated asm library, which will be updated by dependabot in a timely manner anyway.
Java 26 will be released in March 2026.
OpenJDK 26 GA is scheduled for 2026/03/17.
I here list the JEPs I've so far confirmed to be of impact:
In summary: https://javaalmanac.io/jdk/26/
This issue is similar to the previous: #5478
EA Release of JDK26 is available here: https://jdk.java.net/26/
Tasks:
net.sourceforge.pmd.lang.java.JavaLanguageModulenet.sourceforge.pmd.lang.java.LanguageVersionTestnet.sourceforge.pmd.lang.java.JavaLanguageModuleTest#previewVersionShouldBeGreaterThanNonPreviewnet.sourceforge.pmd.lang.java.ast.AllJavaAstTreeDumpTestnet.sourceforge.pmd.dist.BinaryDistributionITnet.sourceforge.pmd.lang.java.JavaLanguageModulenet.sourceforge.pmd.lang.java.LanguageVersionTestnet.sourceforge.pmd.lang.java.ast.Java24PreviewTreeDumpTest(including resources)net.sourceforge.pmd.lang.java.ast.AllJavaAstTreeDumpTestnet.sourceforge.pmd.dist.BinaryDistributionITnet.sourceforge.pmd.lang.java.ast.internal.LanguageLevelCheckerYes - Java 26 will be a LTS releaseTODO: create issue to update integration test after Java 26 is releasedYes, there are new regular language features, so update neededTODO: create issue to update regression tests after PMD + Java 26 is released, if necessaryin order to avoid problems like Disable JDK 26-ea tests apache/commons-compress#724