Open mchoma opened 1 month ago
@dosu do you know what the solution for this problem could be?
The error you're encountering is due to the use of internal JDK classes, specifically com.sun.tools.javac.tree.JCTree
, which have changed in JDK 21. These internal APIs are not guaranteed to be stable across JDK versions.
To resolve this issue, consider the following steps:
Update Dependencies: Check if any third-party libraries or plugins you are using have been updated to support JDK 21. Update them to the latest versions if available.
Avoid Internal APIs: Refactor the code to avoid using internal JDK classes. Look for alternatives in the public API that can achieve the same functionality.
Use a Compatible Compiler Plugin: Ensure that the maven-compiler-plugin
or any other tools you are using are compatible with JDK 21. You might need to upgrade to a newer version if available.
Check for Updates: Look for any updates or patches in the xtf project or related documentation that address compatibility with JDK 21.
These steps should help you address the compatibility issues with JDK 21.
To continue talking to Dosu, mention @dosu.
@dosu are you able to find out which particular dependency need update?
For reference looking around on internet it could be also lombok. https://stackoverflow.com/questions/77171270/compilation-error-after-upgrading-to-jdk-21-nosuchfielderror-jcimport-does-n
Experiencing
with