Hey,

The setLayout method should never be called.  If it is, an AWTError
should be thrown.  There is not stated in the Java API, so I wrote a
mauve test to show this (committed).

Tania

2006-10-13  Tania Bento  <[EMAIL PROTECTED]>

        * java/awt/ScrollPane.java
        (setLayout): Should throw AWTError whenever called.
Index: java/awt/ScrollPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/ScrollPane.java,v
retrieving revision 1.28
diff -u -r1.28 ScrollPane.java
--- java/awt/ScrollPane.java	13 Oct 2006 14:29:59 -0000	1.28
+++ java/awt/ScrollPane.java	13 Oct 2006 17:45:55 -0000
@@ -518,11 +518,12 @@
   * not have layout managers.
   *
   * @param layoutManager Ignored
+  * @throws AWTError Always throws this error when called. 
   */
 public final void
 setLayout(LayoutManager layoutManager)
 {
-  return;
+  throw new AWTError("ScrollPane controls layout");
 }
 
 /*************************************************************************/

Reply via email to