Hey,
These are minor fixes that now causing failing Intel tests to pass.
These three methods should just throw an AWTError whenever called. Here
is Java's API that supports this:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/ScrollPaneAdjustable.html
2006-10-13 Tania Bento <[EMAIL PROTECTED]>
* java/awt/ScrollPaneAdjustable.java
(setMaximum): Should throw AWTError whenever called.
(setMinimum): Same.
(setVisibleAmount): Same.
Index: java/awt/ScrollPaneAdjustable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/ScrollPaneAdjustable.java,v
retrieving revision 1.12
diff -u -r1.12 ScrollPaneAdjustable.java
--- java/awt/ScrollPaneAdjustable.java 22 Mar 2006 19:36:18 -0000 1.12
+++ java/awt/ScrollPaneAdjustable.java 13 Oct 2006 14:40:02 -0000
@@ -145,14 +145,26 @@
this.blockIncrement = blockIncrement;
}
- public void setMaximum (int maximum)
+ /**
+ * This method should never be called.
+ *
+ * @param maximum The maximum value to be set.
+ * @throws AWTError Always throws this error when called.
+ */
+ public void setMaximum (int maximum) throws AWTError
{
- this.maximum = maximum;
+ throw new AWTError("Can be set by scrollpane only");
}
+ /**
+ * This method should never be called.
+ *
+ * @param minimum The minimum value to be set.
+ * @throws AWTError Always throws this error when called.
+ */
public void setMinimum (int minimum)
{
- this.minimum = minimum;
+ throw new AWTError("Can be set by scrollpane only");
}
public void setUnitIncrement (int unitIncrement)
@@ -171,9 +183,15 @@
maximum = value;
}
+ /**
+ * This method should never be called.
+ *
+ * @param visibleAmount The visible amount to be set.
+ * @throws AWTError Always throws this error when called.
+ */
public void setVisibleAmount (int visibleAmount)
{
- this.visibleAmount = visibleAmount;
+ throw new AWTError("Can be set by scrollpane only");
}
public String paramString ()