You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2002/11/11 11:59:14 UTC

DO NOT REPLY [Bug 14440] - PropertyUtils.setProperty Ignores Property Setter

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14440>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14440

PropertyUtils.setProperty Ignores Property Setter





------- Additional Comments From rg@onepercentsoftware.com  2002-11-11 10:59 -------
The code in the original post will actually work.  Replace the call to 
setSimpleProperty with setProperty to see the confusing behavior:

public class PropertyUtilsTest extends TestCase {
	private static final String TEST_VAL = "__test-val__";

	public void testPropUtils() {
		try {
			Criteria c = new Criteria();
			
			PropertyUtils.setProperty(c, "dbName", TEST_VAL);
			assertEquals(TEST_VAL, c.getDbName());
		}
		catch (Throwable t) {
			t.printStackTrace();
		}
	}
}

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>