[
https://issues.apache.org/jira/browse/RATIS-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Song Ziyang resolved RATIS-1878.
--------------------------------
Fix Version/s: 3.0.0
2.5.2
Resolution: Fixed
The PR is now merged, thanks [~szetszwo] ~
> checkstyle fails with UnsupportedClassVersionError
> --------------------------------------------------
>
> Key: RATIS-1878
> URL: https://issues.apache.org/jira/browse/RATIS-1878
> Project: Ratis
> Issue Type: Bug
> Components: build
> Reporter: Tsz-wo Sze
> Assignee: Tsz-wo Sze
> Priority: Major
> Fix For: 3.0.0, 2.5.2
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Currently, we are using checkstyle version 10.9.2, which requires JDK 11
> according [https://checkstyle.org/]. However, we only require JDK 8 in
> ratis. When running checkstyle 10.9.2 with JDK 8, it will fails with the
> error below.
> {code}
> [WARNING] Error injecting:
> org.apache.maven.plugins.checkstyle.CheckstyleViolationCheckMojo
> java.lang.UnsupportedClassVersionError:
> com/puppycrawl/tools/checkstyle/api/AuditListener has been compiled by a more
> recent version of the Java Runtime (class file version 55.0), this version of
> the Java Runtime only recognizes class file versions up to 52.0
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)