diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-12-04 01:05:05 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2006-12-04 01:05:05 +0000 |
commit | ed7702f83c34ebfccedf91bddb473ce4afe91b46 (patch) | |
tree | 6628d2ad5ff6260ea8613a8b0c5cc96fc9e07d9a /javax | |
parent | 7429dc1ae5f7760e0ee39dc2de22930af79dcd45 (diff) | |
download | classpath-ed7702f83c34ebfccedf91bddb473ce4afe91b46.tar.gz |
2006-12-04 Andrew John Hughes <gnu_andrew@member.fsf.org>
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Don't assume the list uses "E",
just use the first and only type variable.
* java/lang/management/ManagementFactory.java:
(getPlatformMBeanServer()): Register logging bean.
* javax/management/openmbean/OpenType.java:
(OpenType(String,String,String)): Actually use
the string created to handle arrays.
Diffstat (limited to 'javax')
-rw-r--r-- | javax/management/openmbean/OpenType.java | 6 |
1 files changed, 3 insertions, 3 deletions
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; |