aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-10-18 09:00:41 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-10-18 09:00:41 +0000
commit490ee176e1c37d6a9def586c43019fd9c00900b8 (patch)
treef530fb4be3d584816db6bf8a943edcded4e32e2c
parentcde85594f0979f7295cc6c01d0211ad49f5ab08e (diff)
downloadgcc-490ee176e1c37d6a9def586c43019fd9c00900b8.zip
gcc-490ee176e1c37d6a9def586c43019fd9c00900b8.tar.gz
gcc-490ee176e1c37d6a9def586c43019fd9c00900b8.tar.bz2
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
-rw-r--r--libjava/ChangeLog6
-rw-r--r--libjava/java/beans/IndexedPropertyDescriptor.java4
2 files changed, 8 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 03d60bd..e89755b 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,9 @@
+2003-10-18 Mark Wielaard <mark@klomp.org>
+
+ Reported by M.Negovanovic
+ * java/beans/IndexedPropertyDescriptor.java
+ (IndexedPropertyDescriptor): this.setIndex = setIndex, not getIndex.
+
2003-10-17 Mohan Embar <gnustuff@thisiscool.com>
* win32.cc (_Jv_pipe): Implemented.
diff --git a/libjava/java/beans/IndexedPropertyDescriptor.java b/libjava/java/beans/IndexedPropertyDescriptor.java
index 965a994..42c9a24 100644
--- a/libjava/java/beans/IndexedPropertyDescriptor.java
+++ b/libjava/java/beans/IndexedPropertyDescriptor.java
@@ -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());
}