Hey,

This patch modifies the string representation returned in
java.awt.ScrollPaneAdjustable.paramString().  This fix now passes a
failing intel test.  I have also committed a mauve test.

Cheers,
Tania

2006-11-01  Tania Bento  <[EMAIL PROTECTED]>

        * java/awt/ScrollPaneAdjustable.java
        (paramString): Changed format of string representation returned.
        (paramStringHelper): New private method.

Index: java/awt/ScrollPaneAdjustable.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/ScrollPaneAdjustable.java,v
retrieving revision 1.13
diff -u -r1.13 ScrollPaneAdjustable.java
--- java/awt/ScrollPaneAdjustable.java	13 Oct 2006 14:41:13 -0000	1.13
+++ java/awt/ScrollPaneAdjustable.java	1 Nov 2006 19:58:22 -0000
@@ -196,13 +196,23 @@
 
   public String paramString ()
   {
-    return ("scrollpane=" + sp + ", orientation=" + orientation
-            + ", value=" + value + ", minimum=" + minimum
-            + ", maximum=" + maximum + ", visibleAmount=" + visibleAmount
-            + ", unitIncrement=" + unitIncrement
-            + ", blockIncrement=" + blockIncrement);
+    return paramStringHelper() 
+         + ",[" + getMinimum() + ".." + getMaximum() 
+         + "],val=" + getValue() 
+         + ",vis=" + getVisibleAmount() 
+         + ",unit=" + getUnitIncrement()
+         + ",block=" + getBlockIncrement() 
+         + ",isAdjusting=" + valueIsAdjusting;
   }
 
+  private String paramStringHelper()
+  {
+    if (getOrientation() == HORIZONTAL)
+      return "horizontal";
+    else
+      return "vertical";
+  }
+  
   public String toString()
   {
     return getClass().getName() + "[" + paramString() + "]";
@@ -227,5 +237,6 @@
   {
     this.valueIsAdjusting = valueIsAdjusting;
   }
+  
 } // class ScrollPaneAdjustable
 

Reply via email to