Affects Version/s: Nightly Builds
Fix Version/s: None
Operating System: All
I just downloaded the head version (1.10) of <I>EmailValidator.java</I> from
1. For a valid email address with symbolic name like <B>email@example.com<B>,
the output from isValid() method always returns <B>FALSE</B>.
2. For an email address with IP address like <B>firstname.lastname@example.org<B>, the
ouput from isValid() method always returns <B>FALSE</B>.
NB: 126.96.36.199 is one of yahoo's mirror ip address.
When I looked at the code, I figured out the following points:
1. In the method isValidSymbolicDomain(), the matcher uses ATOM_PATTERN instead
of DOMAIN_PATTERN. For eg, <B>yahoo.com</B> is a valid DOMAIN_PATTERN but not a
valid ATOM_PATTERN as per the regular expressions used for those strings.
2. In the method isValidDomain(), the check for <B>symbolic</B> variable should
be inside the "else block" as symbolic will always be "false" for domains that
After modifying the code in the above two places, isValid() method returns true
for the above metioned email addresses.