Email validator seems to consider null and empty string ("") valid email.
 See
https://svn.apache.org/repos/asf/bval/trunk/bval-core/src/main/java/org/apache/bval/routines/EMailValidationUtils.java:

    public static boolean isValid(Object value, Pattern aPattern) {*
     if (value == null)
            return true;
        if (!(value instanceof CharSequence))
            return false;
        CharSequence seq = (CharSequence) value;
        if (seq.length() == 0)
            return true;*
        Matcher m = aPattern.matcher(seq);
        return m.matches();
    }

That surprises me.  Does it surprise anyone else?  Can we get that changed?
 I'd be happy to file an issue (and patch).

-matthew

-- 
mailto:[email protected] <[email protected]>
skype:matthewadams12
googletalk:[email protected]
http://matthewadams.me
http://www.linkedin.com/in/matthewadams

Reply via email to