Issues After Upgrading to JDK 21 and JUnit 5 in AEM Project – Need Guidance
Hi all,
Previously, I was using JDK 11 and JUnit 4 in the AEM project source code, and all the core module test cases were passing. However, after upgrading to JDK 21 and JUnit 5, all the test cases started failing with several issues such as NullPointerException, NoClassDefFoundError, and others. For your reference, I have attached a screenshot.
I want to investigate why this happened and how we can fix it. Do we need to resolve these null and NoClassDefFoundError issues manually by visiting each and every failing class, or is there any other way?


Please provide proper guidance. Thanks