Skip to content

[java] Add sample java project to regression-tester which uses new language constructs #3431

@adangel

Description

@adangel

Is your feature request related to a problem? Please describe.
We often have rules, that make certain assumptions of the grammar. When we update the grammar to support a new Java version (like #3366), some rules might fail with a NPE (e.g. #3420).

Describe the solution you'd like
We should have a sample project on which pmd is executed by our regression tester, so that we see these problems earlier.

Describe alternatives you've considered

  • Just run PMD in PMDCoverageTest on src/main/resources, where we have some source, that uses the new language - but then we don't run PMD with the proper auxclasspath, as these java files are not compiled. Because of that, some rules might stop early, if the type couldn't be resolved.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesin:pmd-internalsAffects PMD's internals

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions