[jboss-jira] [JBoss JIRA] Created: (JBCOMMON-32) org.jboss.util.propertyeditor.PropertiesEditor should preserve the string text
Dimitris Andreadis (JIRA)
jira-events at lists.jboss.org
Thu Aug 30 12:11:19 EDT 2007
org.jboss.util.propertyeditor.PropertiesEditor should preserve the string text
------------------------------------------------------------------------------
Key: JBCOMMON-32
URL: http://jira.jboss.com/jira/browse/JBCOMMON-32
Project: JBoss Common
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: common-core
Affects Versions: 2.0.0.GA
Reporter: Dimitris Andreadis
Assigned To: Dimitris Andreadis
Fix For: 2.2.1.GA
Many of our property editors extend org.jboss.util.propertyeditor.TextPropertyEditorSupport and operate in a reverse mode, i.e they store the string form of a property and convert to object whenever getValue() is called (rather than storing a converted object).
In this way the string form remains intact, so there is no property replacement if you ask back the string with getAsText().
org.jboss.util.propertyeditor.PropertiesEditor in JBoss Common 1.x operates like this, but it was changed some time ago in jboss head (now jboss commons 2.x.)
This causes a test failure in the AS testsuite since getAsText()
- doesn't preserve the property item order
- resolves ${whatever}
- includes the leading #timestamp
I'll revert that change and essentially synch org.jboss.util.propertyeditor.PropertiesEditor with jboss common 1.x.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list