Skip to content

[java] Report missing classes during analysis #5064

@adangel

Description

@adangel

Is your feature request related to a problem? Please describe.
This is about type resolution and the configured auxclasspath. In case the auxclasspath is incomplete or missing, PMD wouldn't work correctly, e.g. reporting false positives / false negatives.

Describe the solution you'd like
Report any classes that are missing on the auxclasspath during analysis. If these classes are reported e.g. as "processing errors" (I know, we trying to renaming these to recoverable errors, but missing class is not recoverable in general), other tools like maven could fail the build based on that.

Describe alternatives you've considered
?

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    an:enhancementAn improvement on existing features / rulesin:type-resolutionAffects the type resolution code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions