ArrayList and toArray()
Hello,
I have an ArrayList:
ArrayList<javax.mail.SearchTerm> terms = new ArrayList<javax.mail.SearchTerm>();
I add terms to this list and then try to build an AndTerm():
SearchTerm query = new AndTerm((SearchTerm[]) terms.toArray());
It compiles fine but Tomcat barfs.
Thanks in advance.

