-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P3
-
None
-
Affects Version/s: 7u45
-
Component/s: other-libs
-
linux
A DESCRIPTION OF THE PROBLEM :
I tried to use javax.mail.internet.InternetAddress.parse for an email sending porlet in Liferay.
The method doesn't seem to call the .validate() because it doesn't thwrow an AddressException for wrong email address inserted.
It does if I put the Array in a "for " cycle and use the validate() function.
It would also be nice if it would throw an exception if the returned array's lenght is zero.
Yes, I could check with Javascript, but knowing Java better (and adding an extra layer of checks) is a better choice for me.
Have a nice day !!!
Daniele Silvi
URL OF FAULTY DOCUMENTATION :
javax.mail.internet.InternetAddress.parse
I tried to use javax.mail.internet.InternetAddress.parse for an email sending porlet in Liferay.
The method doesn't seem to call the .validate() because it doesn't thwrow an AddressException for wrong email address inserted.
It does if I put the Array in a "for " cycle and use the validate() function.
It would also be nice if it would throw an exception if the returned array's lenght is zero.
Yes, I could check with Javascript, but knowing Java better (and adding an extra layer of checks) is a better choice for me.
Have a nice day !!!
Daniele Silvi
URL OF FAULTY DOCUMENTATION :
javax.mail.internet.InternetAddress.parse