jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject svn commit: r535847 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java
Date Mon, 07 May 2007 11:00:24 GMT
Author: stefan
Date: Mon May  7 04:00:21 2007
New Revision: 535847

URL: http://svn.apache.org/viewvc?view=rev&rev=535847
Log:
JCR-897 ItemState constructor throws IllegalArgumentException

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java?view=diff&rev=535847&r1=535846&r2=535847
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/state/ItemState.java
Mon May  7 04:00:21 2007
@@ -131,6 +131,13 @@
             case STATUS_EXISTING_REMOVED:
                 status = initialStatus;
                 break;
+
+            case STATUS_UNDEFINED:
+                // see http://issues.apache.org/jira/browse/JCR-897
+                log.debug("creating ItemState instance with initialStatus=" + STATUS_UNDEFINED
+ ", id=" + overlayedState.getId());
+                status = initialStatus;
+                break;
+
             default:
                 String msg = "illegal status: " + initialStatus;
                 log.debug(msg);



Mime
View raw message