View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820039#3820039
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820039 here's what's happenning... in the prepare method of the ReplyCommand, there is this code: message = post.getMessage() message.setText("\"" + post.getPoster().getAuthor(false) + "\" wrote : " + message.getText() + ""); when the setText method on message is called, it's actually altering the text of the original message as well. (it also changes the original subject to include "Re" as well). in order to fix, i clone the retreived message. message = (Message) post.getMessage().clone(); the original message stays unaltered and the reply message is properly quoted. i'm not fully understanding this behavior (is this normal when using a dvc?), but it seems that changing values on the Message object causes the entity bean to change as well - while acting on the cloned object does not. let me know if you think this is a bug somewhere else, otherwise i will check in my fix. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ JBoss-Development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
