0 Replies Latest reply on Jul 25, 2007 3:27 PM by Dimitris Andreadis

    org.jboss.util.propertyeditor.PropertiesEditor

    Dimitris Andreadis Master

      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 2 years ago in jboss head (now jboss commons 2.x.) by 'genman'.

      This causes a test failure since getAsText()
      - doesn't preserve the property item order
      - resolves ${whatever}
      - includes the leading #timestamp

      so I'm wondering what's the semantics we really want and whether I should bring back the 1.x implementation, or change the tests.

      The only related JIRA issue I could find is this:
      http://jira.jboss.com/jira/browse/JBAS-2117?page=comments