commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14440] - PropertyUtils.setProperty Ignores Property Setter
Date Mon, 11 Nov 2002 10:59:14 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message