You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/04/19 23:46:32 UTC
[jira] Closed: (XMLBEANS-4) xs:decimal size greater than 18 results in uncompilable java code
[ http://issues.apache.org/jira/browse/XMLBEANS-4?page=all ]
Jacob Danner closed XMLBEANS-4:
-------------------------------
Assign To: (was: xmlbeans-dev@xml.apache.org)
Fix Verified in V2 branch, closing
This was the test output:
Time to build schema type system: 2.281 seconds
Time to generate code: 0.343 seconds
Time to compile code: 2.641 seconds
Compiled types to: xmltypes.jar
> xs:decimal size greater than 18 results in uncompilable java code
> -----------------------------------------------------------------
>
> Key: XMLBEANS-4
> URL: http://issues.apache.org/jira/browse/XMLBEANS-4
> Project: XMLBeans
> Type: Bug
> Components: Compiler
> Versions: unspecified
> Environment: Operating System: All
> Platform: All
> Reporter: Aaron Dunlop
> Attachments: SchemaTypeCodePrinter.patch
>
> A schema including a type derived from xs:decimal and limited to a maximum
> length greater than 18 digits will result in generation of incorrect java code.
> e.g.
> <xs:element name="sb2OfficeID" minOccurs="0">
> <xs:simpleType>
> <xs:restriction base="xs:decimal">
> <xs:totalDigits value="38"/>
> <xs:fractionDigits value="0"/>
> </xs:restriction>
> </xs:simpleType>
> </xs:element>
> results in:
> ...
> java.math.BigInteger getBigIntegerValue();
> setBigIntegerValue(java.math.BigInteger bi); // *** 'void' missing
> /** @deprecated */
> java.math.BigInteger bigIntegerValue();
> ...
> When scomp attempts to compile this code, of course it barfs...
> [java] c:\temp\xmlschema_src\com\tcore\schema\Office.java:143:
> <identifier> expected
> [java] setBigIntegerValue(java.math.BigInteger bi);
> [java] ^
> [java] c:\temp\xmlschema_src\com\tcore\schema\Office.java:143: = expected
> [java] setBigIntegerValue(java.math.BigInteger bi);
> [java] ^
> [java] c:\temp\xmlschema_src\com\tcore\schema\Office.java:143: cannot
> resolve symbol
> [java] symbol : class setBigIntegerValue
> [java] location: interface com.tcore.schema.Office.Sb2OfficeID
> [java] setBigIntegerValue(java.math.BigInteger bi);
> [java] ^
> [java] Note: Some input files use or override a deprecated API.
> [java] Note: Recompile with -deprecation for details.
> [java] 3 errors
> The fix is simple - patch to follow.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org