[jboss-dev-forums] [Design of JBoss Collaboration Server] - Re: MessageData Bug (only in special case)

sappenin do-not-reply at jboss.com
Fri Aug 18 11:27:02 EDT 2006


See JIRA issue here + patch:

http://jira.jboss.org/jira/browse/JBMAIL-247

Essentially, I moved the creation of the String array into the try/catch block.  If an exception is thrown (i.e., no "content-type" header) then it is eaten and ignored.

Note:  I kept the "split" around the newline since stored messages have a newline after the "content-type" label.  I guess this is one argument in favor of not merging MessageData and Mail classes (i.e., backing a MessageData class with a Mail object per my previous suggestion below) because this function behaves differently in each class.


  | String[] header = getHeader("Content-Type").split("\\r\\n");

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966092#3966092

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966092



More information about the jboss-dev-forums mailing list