From: <ss...@re...> - 2004-12-17 17:35:16
|
Author: sshinde Date: 2004-12-17 18:26:33 +0100 (Fri, 17 Dec 2004) New Revision: 158 Modified: ccm-core/trunk/src/com/arsdigita/messaging/ThreadedMessage.java ccm-forum/trunk/src/com/arsdigita/forum/Post.java Log: Make the beforeDelete() method in both classes protected. This is the right change which should fix change no. 156. Modified: ccm-core/trunk/src/com/arsdigita/messaging/ThreadedMessage.java =================================================================== --- ccm-core/trunk/src/com/arsdigita/messaging/ThreadedMessage.java 2004-12-17 15:08:30 UTC (rev 157) +++ ccm-core/trunk/src/com/arsdigita/messaging/ThreadedMessage.java 2004-12-17 17:26:33 UTC (rev 158) @@ -29,7 +29,6 @@ import com.arsdigita.persistence.PersistenceException; import com.arsdigita.persistence.Session; import com.arsdigita.persistence.SessionManager; -import com.arsdigita.util.UncheckedWrapperException; // Java Core classes import java.math.BigDecimal; @@ -430,7 +429,7 @@ return child; } - public void beforeDelete() { + protected void beforeDelete() { if( s_log.isDebugEnabled() ) { s_log.debug( "Deleting children of " + getOID() ); } Modified: ccm-forum/trunk/src/com/arsdigita/forum/Post.java =================================================================== --- ccm-forum/trunk/src/com/arsdigita/forum/Post.java 2004-12-17 15:08:30 UTC (rev 157) +++ ccm-forum/trunk/src/com/arsdigita/forum/Post.java 2004-12-17 17:26:33 UTC (rev 158) @@ -447,7 +447,7 @@ return m_moderator; } - public void beforeDelete() { + protected void beforeDelete() { // First delete associated entries in nt_requests this entry and // all of its replies (in case of a root message) have List replies = new ArrayList(); |