-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b39
-
x86
-
linux
Note that the catch clause below constructs an OpenDataException but
does not throw it:
static class CompositeDataMXBeanType extends MappedMXBeanType {
final Class javaClass;
final boolean isCompositeData;
Method fromMethod = null;
CompositeDataMXBeanType(Class c) throws OpenDataException {
this.javaClass = c;
this.mappedTypeClass = COMPOSITE_DATA_CLASS;
// check if a static from method exists
try {
fromMethod = (Method)
AccessController.doPrivileged(new PrivilegedExceptionAction() {
public Object run() throws NoSuchMethodException {
return javaClass.getMethod("from", COMPOSITE_DATA_CLASS);
}
});
} catch (PrivilegedActionException e) {
// NoSuchMethodException is wrapped
final OpenDataException ode =
new OpenDataException("from(CompositeData) method "
+ "doesn't exist in " + c.getName());
}
###@###.### 2005-05-11 00:35:36 GMT
does not throw it:
static class CompositeDataMXBeanType extends MappedMXBeanType {
final Class javaClass;
final boolean isCompositeData;
Method fromMethod = null;
CompositeDataMXBeanType(Class c) throws OpenDataException {
this.javaClass = c;
this.mappedTypeClass = COMPOSITE_DATA_CLASS;
// check if a static from method exists
try {
fromMethod = (Method)
AccessController.doPrivileged(new PrivilegedExceptionAction() {
public Object run() throws NoSuchMethodException {
return javaClass.getMethod("from", COMPOSITE_DATA_CLASS);
}
});
} catch (PrivilegedActionException e) {
// NoSuchMethodException is wrapped
final OpenDataException ode =
new OpenDataException("from(CompositeData) method "
+ "doesn't exist in " + c.getName());
}
###@###.### 2005-05-11 00:35:36 GMT