diff options
author | Mark Wielaard <mark@klomp.org> | 2006-12-04 22:26:29 +0000 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2006-12-04 22:26:29 +0000 |
commit | db646790cae1f99be68f70f3a1582ac150b69944 (patch) | |
tree | c3992f79846629a24633e75bd81cfc2c052b8c2b | |
parent | 971e7267e5fbd6f2d8a3ab9d8ef11e5159baed5b (diff) | |
download | classpath-db646790cae1f99be68f70f3a1582ac150b69944.tar.gz |
* javax/management/openmbean/OpenType.java:
(OpenType(String,String,String)): Actually use
the string created to handle arrays.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | javax/management/openmbean/OpenType.java | 6 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,9 @@ +2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org> + + * javax/management/openmbean/OpenType.java: + (OpenType(String,String,String)): Actually use + the string created to handle arrays. + 2006-12-04 Roman Kennke <kennke@aicas.com> * native/jni/java-nio/gnu_java_nio_VMChannel.c diff --git a/javax/management/openmbean/OpenType.java b/javax/management/openmbean/OpenType.java index b08c40ccc..13c9e8a3e 100644 --- a/javax/management/openmbean/OpenType.java +++ b/javax/management/openmbean/OpenType.java @@ -133,11 +133,11 @@ public abstract class OpenType testString = className; boolean openTypeFound = false; for (int a = 0; a < ALLOWED_CLASSNAMES.length; ++a) - if (ALLOWED_CLASSNAMES[a].equals(className)) + if (ALLOWED_CLASSNAMES[a].equals(testString)) openTypeFound = true; if (!openTypeFound) - throw new OpenDataException("The class name does not specify " + - "a valid open type."); + throw new OpenDataException("The class name, " + testString + + ", does not specify a valid open type."); this.className = className; typeName = name; description = desc; |