Reported by M.Negovanovic
2003-10-18 Mark Wielaard <mark@klomp.org> Reported by M.Negovanovic * java/beans/IndexedPropertyDescriptor.java (IndexedPropertyDescriptor): this.setIndex = setIndex, not getIndex. From-SVN: r72637
This commit is contained in:
parent
cde85594f0
commit
490ee176e1
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/* java.beans.IndexedPropertyDescriptor
|
||||
Copyright (C) 1998 Free Software Foundation, Inc.
|
||||
Copyright (C) 1998, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
|
@ -216,7 +216,7 @@ public class IndexedPropertyDescriptor extends PropertyDescriptor {
|
|||
this.getMethod = getMethod;
|
||||
this.setMethod = setMethod;
|
||||
this.getIndex = getIndex;
|
||||
this.setIndex = getIndex;
|
||||
this.setIndex = setIndex;
|
||||
this.indexedPropertyType = getIndex != null ? getIndex.getReturnType() : setIndex.getParameterTypes()[1];
|
||||
this.propertyType = getMethod != null ? getMethod.getReturnType() : (setMethod != null ? setMethod.getParameterTypes()[0] : Array.newInstance(this.indexedPropertyType,0).getClass());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue