
|
If you were logged in you would be able to see more operations.
|
|
|
AppFuse
Created: 11/Oct/07 12:41 PM
Updated: 12/Dec/08 02:31 AM
|
|
| Component/s: |
Tools - AppGen
|
| Affects Version/s: |
2.0 Final
|
| Fix Version/s: |
2.1
|
|
|
File Attachments:
|
1.
org.appfuse.dao.BaseDaoTestCase.patch (0.5 kb)
|
|
Environment:
|
Maven version: 2.0.7
Java version: 1.5.0_11
OS name: "linux" version: "2.6.20-16-generic" arch: "i386"
Maven version: 2.0.7
Java version: 1.5.0_11
OS name: "linux" version: "2.6.20-16-generic" arch: "i386"
|
|
|
BaseDaoTestCase#populate( Object ) uses spring-2.0.6's BeanUtils.copyProperties( HashMap, Object ). However, I think the first parameter of copyProperties(...) should have the same properties of the 2nd parameter for it to work properly.
|
|
Description
|
BaseDaoTestCase#populate( Object ) uses spring-2.0.6's BeanUtils.copyProperties( HashMap, Object ). However, I think the first parameter of copyProperties(...) should have the same properties of the 2nd parameter for it to work properly. |
Show » |
|
I am seeing this in 2.0.2
The problem is that the call to BeanUtils.copyProperties is reversed. The destination is supposed to be the first parameter, the second is supposed to be the source.
The call at BaseDaoTestCase:76 should be
BeanUtils.copyProperties(obj, map);