Folder.list behaviour

What is the rationale behind POP3Folder.list always throwing a MessagingException? This makes it inconvenient when creating an application that is supposed to work against either IMAP/POP (sure one can handle the exception, but the exception thrown in this case seems useless). The Folder.list method documentation indicates that the method returns an empty array if no children are found. Based upon that principle shouldn't POP3Folder.list also return an empty array rather than throw an exception?

Rakesh

[521 byte] By [rakeshva] at [2007-11-26 20:14:07]
# 1
I think it's the difference between "no children currently" and "there cannever be any children".
bshannona at 2007-7-9 23:20:25 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...