Skip to content

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

Closed

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

Activity

  1. added
    an:enhancement
    in:pmd-internals
    on Jul 30, 2021
  2. added this to the 6.39.0 milestone on Aug 20, 2021
  3. modified the milestones: 6.39.0, 6.40.0 on Sep 21, 2021
  4. modified the milestones: 6.40.0, 6.41.0 on Oct 26, 2021
  5. modified the milestones: 6.41.0, 6.42.0 on Nov 18, 2021
  6. modified the milestones: 6.42.0, 6.43.0 on Jan 13, 2022
  7. modified the milestones: 6.43.0, 6.44.0 on Feb 22, 2022
  8. modified the milestones: 6.44.0, 6.45.0 on Mar 24, 2022
  9. modified the milestones: 6.45.0, 6.46.0 on Apr 28, 2022
  10. modified the milestones: 6.46.0, 6.47.0 on May 19, 2022
  11. modified the milestones: 6.47.0, 6.48.0 on Jun 21, 2022
  12. modified the milestones: 6.48.0, 6.49.0 on Jul 26, 2022
  13. modified the milestones: 6.49.0, 6.50.0 on Aug 30, 2022
  14. added a commit that references this issue on Sep 26, 2022
    dd82e5e
  15. added a commit that references this issue on Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementin:pmd-internals

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions