updates for 0.9.3
[debian/openrocket] / src / net / sf / openrocket / gui / adaptors / DoubleModel.java
index 0004dbc4659ceb4ad38497830422a3707bc8bd3a..f2125b630162f012ee6398fc4f0d8f1a1dc6367e 100644 (file)
@@ -586,13 +586,12 @@ public class DoubleModel implements ChangeListener, ChangeSource {
                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
        }
        
        /**
@@ -614,13 +613,12 @@ public class DoubleModel implements ChangeListener, ChangeSource {
                        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
        }