[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-1921) "dirty, but no dirty properties" thrown when Interceptor resets properties.

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Sep 26 15:49:24 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1921?page=all ]

Emmanuel Bernard updated HHH-1921:
----------------------------------

    Fix Version: 3.2.1

> "dirty, but no dirty properties" thrown when Interceptor resets properties.
> ---------------------------------------------------------------------------
>
>          Key: HHH-1921
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1921
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.2.0.cr2
>  Environment: java version "1.5.0_07"
> Hibernate 3.2.cr2
>     Reporter: Josh Moore
>      Fix For: 3.2.1
>  Attachments: InterceptorTest.java, ResetInterceptor.java, dirtybutnotdirty.zip
>
>
> When Interceptor.onfindDirty() resets properties to their DB value, the check in DefaultFlushEntityEventListener.scheduleUpdate:
> 		// if it was dirtied by a collection only
> 		int[] dirtyProperties = event.getDirtyProperties();
> 		if ( event.isDirtyCheckPossible() && dirtyProperties==null ) {
> 			if ( !event.hasDirtyCollection() ) {
> 				throw new AssertionFailure("dirty, but no dirty properties");
> 			}
> 			dirtyProperties = ArrayHelper.EMPTY_INT_ARRAY;
> 		}
> fails needlessly.
> Attached test has been confirmed against SVN TRUNK:
> URL: http://anonhibernate.labs.jboss.com/trunk/Hibernate3
> Revision: 10125

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list