Skip to content

Tech debt: refactor URL + Email validation #8531

@poikilotherm

Description

@poikilotherm

While hacking on Jakarta + Payara 6 compatibility #8305 , I came across these errors (see screenshot).

grafik

Let's fix this:

  • Move email + url validation classes and annotations to sub packages (where they belong...), refactor using code to reflect the relocation (7 classes)
  • Make the Validator classes less complicated (some strange constructions in URLValidator with NPE etc????)
  • Make the messages come from ValidationMessages.properties via standard mechanisms instead of Bundle.properties
  • Fix the tests to not use internal classes but use the standard ways of testing ConstraintValidations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions