This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Class[] param = new Class [0];
try {
nameGetter = clazz.getMethod ("getName", param); // NOI18N
if (nameGetter.getReturnType () != String.class) throw new NoSuchMethodException ();
} catch (NoSuchMethodException e) {
nameGetter = clazz.getMethod ("getDisplayName", param); // NOI18N
//issue 34914, serialized bean names showing up in different
--
//locales - we must look first for SystemOption.displayName() -
//its getName() method *will* be serialized if any settings
//have been changed; if the user restarts in a different
//locale, the previous locale's of the name will be shown
nameGetter = clazz.getMethod("displayName", null); //NOI18N
} catch (NoSuchMethodException ee) {
} catch (NoSuchMethodException nsme) {
return null;
}
nameGetter = clazz.getMethod ("getDisplayName", null); // NOI18N
nameGetter = clazz.getMethod ("getName", null); // NOI18N
/** Try to get display name of the bean.
*/