apache / apache/maven-pmd-plugin
[MPMD-385] Support for --enable-preview
- Dominant language
- Java
- Stars
- 66
- Forks
- 55
- Avg merge
- 8d 16h
- Merged PRs (30d)
- 7
Description
**[Gili](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cowwoc)** opened **[MPMD-385](https://issues.apache.org/jira/browse/MPMD-385?redirect=false)** and commented
When running PMD against classes compiled using --enable-preview I get:
[WARNING] Error during type resolution of field \ in class \ due to: java.lang.UnsupportedClassVersionError: Preview features are not enabled for gg/soulbound/optimus/server/Server (class file version 64.65535). Try running with '--enable-preview'
It seems that PMD expects us to pass --enable-preview, but the Maven plugin does not provide a mechanism for doing so. I tried setting targetJdk to "20-preview" but that didn't help either.
---
**Affects:** 3.21.0
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.