You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ra...@apache.org on 2005/04/11 22:41:12 UTC
svn commit: r160946 -
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
Author: radup
Date: Mon Apr 11 13:41:10 2005
New Revision: 160946
URL: http://svn.apache.org/viewcvs?view=rev&rev=160946
Log:
Gotta make sure that nillable is only checked when validateOnSet is true
Modified:
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java?view=diff&r1=160945&r2=160946
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/values/XmlObjectBase.java Mon Apr 11 13:41:10 2005
@@ -1240,7 +1240,8 @@
{
if (get_store().find_nil())
{
- if ((_flags & FLAG_NILLABLE) == 0)
+ if ((_flags & FLAG_NILLABLE) == 0 &&
+ (_flags & FLAG_VALIDATE_ON_SET) != 0)
throw new XmlValueOutOfRangeException(); // nil not allowed
// let the implementation know that we're nil now
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org