You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ki...@apache.org on 2019/01/18 22:50:27 UTC

svn commit: r1851655 - in /xmlbeans/trunk: CHANGES.txt src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java

Author: kiwiwings
Date: Fri Jan 18 22:50:27 2019
New Revision: 1851655

URL: http://svn.apache.org/viewvc?rev=1851655&view=rev
Log:
XMLBEANS-531: Fix schema gen of attributes

Modified:
    xmlbeans/trunk/CHANGES.txt
    xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java

Modified: xmlbeans/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/CHANGES.txt?rev=1851655&r1=1851654&r2=1851655&view=diff
==============================================================================
--- xmlbeans/trunk/CHANGES.txt (original)
+++ xmlbeans/trunk/CHANGES.txt Fri Jan 18 22:50:27 2019
@@ -1,5 +1,6 @@
 Changes in V3.0.3 since V3.0.2
 
+* XMLBEANS-531: Fix schema gen of attributes
 * XMLBEANS-530: Allow namespaces of XmlOptions to be passed to the XQuery engine
 * XMLBEANS-529: Format xmlobjects to the correct string representation on XPath access
 * XMLBEANS-528: Allow document locator to be set after initialization

Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java?rev=1851655&r1=1851654&r2=1851655&view=diff
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/schema/SchemaTypeCodePrinter.java Fri Jan 18 22:50:27 2019
@@ -2314,7 +2314,7 @@ public final class SchemaTypeCodePrinter
             printJavaDoc((several ? "Sets first " : "Sets the ") + propdesc);
             emit("public void set" + propertyName + "(" + type + " " + safeVarName + ")");
             startBlock();
-            if ( xmltype && !isSubstGroup )
+            if ( xmltype && !isSubstGroup && !isAttr )
             {
                 emitPre(sType, PrePostExtension.OPERATION_SET, identifier, isAttr, several ? "0" : "-1");
                 emit("generatedSetterHelperImpl(" + safeVarName + ", " + setIdentifier + ", 0, " +



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org