You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-dev@xml.apache.org by ji...@apache.org on 2004/02/29 01:32:31 UTC
[jira] Commented: (XMLBEANS-24) JDK 1.3.1 backport: make 'assert' backwards-compatible
The following comment has been added to this issue:
Author: Matt Bishop
Created: Sat, 28 Feb 2004 4:31 PM
Body:
I added an assertTrue() method to org.apache.xmlbeans.XmlBeans as it had some other utility methods in it, plus was visible throughout the codebase. If there's a better place for this, please let me know.
Since the number of changes is quite big, I will not submit a full patch for this change, but rather the changes to XmlBeans.java. The changes will be submitted with the final 1.3 backport submission.
USAGE IDIOM:
if (XmlBeans.ASSERTS) XmlBeans.assertTrue(testCondtion, message); //message is optional
The test against XMLBEANS.asserts keeps the testCondition from being evaluated at runtime if the "xmlbeans.disableassertions" property is set.
---------------------------------------------------------------------
View this comment:
http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=XMLBEANS-24&page=comments#action_20940
---------------------------------------------------------------------
View the issue:
http://nagoya.apache.org/jira/secure/ViewIssue.jspa?key=XMLBEANS-24
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XMLBEANS-24
Summary: JDK 1.3.1 backport: make 'assert' backwards-compatible
Type: Improvement
Status: Unassigned
Priority: Major
Project: XMLBeans
Versions:
Version 1
Assignee:
Reporter: Matt Bishop
Created: Sat, 28 Feb 2004 4:28 PM
Updated: Sat, 28 Feb 2004 4:31 PM
Description:
Since JDK 1.3 does not support the 'assert' keyword, a similar mechanism needs to be put in place for the ~1000 assertion calls throughout the product. This assert feature needs to be driven by a system property so that it can be turned off if desired.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
- ---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-dev-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/