Skip to content

Commit c0b1c8f

Browse files
Rafael Winterhaltersameb
authored andcommitted
Fixed bean copier that read getters instead of setters.
1 parent 5aeb476 commit c0b1c8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cglib/src/main/java/net/sf/cglib/beans/BeanCopier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void generateClass(ClassVisitor v) {
109109
EmitUtils.null_constructor(ce);
110110
CodeEmitter e = ce.begin_method(Constants.ACC_PUBLIC, COPY, null);
111111
PropertyDescriptor[] getters = ReflectUtils.getBeanGetters(source);
112-
PropertyDescriptor[] setters = ReflectUtils.getBeanGetters(target);
112+
PropertyDescriptor[] setters = ReflectUtils.getBeanSetters(target);
113113

114114
Map names = new HashMap();
115115
for (int i = 0; i < getters.length; i++) {

0 commit comments

Comments
 (0)