Skip to content

Build fails because existing documentation warnings are treated as errors by -Werror #7393

@Nareshgouddev

Description

@Nareshgouddev

Description

I ran the project build while working on PrimeCheck and the compilation failed before the test phase because warning-level issues are treated as errors by the Maven compiler configuration.

Observed behavior:

The build reports documentation warnings in [AnyBaseToAnyBase.java]
The build reports documentation warnings in [InterpolationSearch.java]
The build reports documentation warnings in [LinearSearch.java]

Maven then fails with the message: warnings found and -Werror specified

Steps to reproduce

1.Run mvn test from the repository root.
2.The build stops during compilation because warnings are promoted to errors.

Excepted behavior

The project should compile successfully, or these warning-level documentation issues should be fixed so they do not block the build.

Screenshots

Image

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions