EmailValidator throws an IllegalArgumentException for long email addresses

Description

When I attempt to validate the email address below the IDN.toASCII call throws an exception because it's using the entire email address and not just the domain, eg aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@hibernate.org

In EmailValidator.java:

A test:

Environment

None

Status

Assignee

Unassigned

Reporter

Marco Ramirez

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure