try {
return (Double)getMethod.invoke(source)*multiplier;
} catch (IllegalArgumentException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke getMethod of "+this, e);
} catch (IllegalAccessException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke getMethod of "+this, e);
} catch (InvocationTargetException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke getMethod of "+this, e);
}
- return lastValue; // Should not occur
}
/**
setMethod.invoke(source, v/multiplier);
return;
} catch (IllegalArgumentException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke setMethod of "+this, e);
} catch (IllegalAccessException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke setMethod of "+this, e);
} catch (InvocationTargetException e) {
- e.printStackTrace();
+ throw new RuntimeException("BUG: Unable to invoke setMethod of "+this, e);
}
- fireStateChanged(); // Should not occur
}