[ 
https://issues.apache.org/jira/browse/WICKET-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Vaynberg resolved WICKET-1290.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.1

> PrependingStringBuffer.equals(Object obj) is not reflexive
> ----------------------------------------------------------
>
>                 Key: WICKET-1290
>                 URL: https://issues.apache.org/jira/browse/WICKET-1290
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>         Environment:  svn info
> Pfad: .
> URL: https://svn.apache.org/repos/asf/wicket/trunk
> Basis des Projektarchivs: https://svn.apache.org/repos/asf
> UUID des Projektarchivs: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 612392
> Knotentyp: Verzeichnis
> Plan: normal
> Letzter Autor: gseitz
> Letzte geänderte Rev: 612310
> Letztes Änderungsdatum: 2008-01-16 00:38:25 +0100 (Mi, 16 Jan 2008)
>            Reporter: Martin Funk
>            Assignee: Igor Vaynberg
>             Fix For: 1.3.1
>
>
> PrependingStringBuffer.equals(Object obj) is not reflexive
> TestCase showing this:
>  svn diff
> Index: 
> jdk-1.4/wicket/src/test/java/org/apache/wicket/util/string/PrependingStringBufferTest.java
> ===================================================================
> --- 
> jdk-1.4/wicket/src/test/java/org/apache/wicket/util/string/PrependingStringBufferTest.java
>   (Revision 612392)
> +++ 
> jdk-1.4/wicket/src/test/java/org/apache/wicket/util/string/PrependingStringBufferTest.java
>   (Arbeitskopie)
> @@ -56,4 +56,17 @@
>                 psb.prepend('1');
>                 assertEquals("1234567890", psb.toString());
>         }
> +
> +       /**
> +        * Test <a
> +        * 
> href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object)">reflexivity<a>
> +        * of the equals implementation.
> +        * 
> +        * @throws Exception
> +        */
> +       public void testEqualsReflexive() throws Exception
> +       {
> +               PrependingStringBuffer psb = new 
> PrependingStringBuffer("foo");
> +               assertTrue(psb.equals(psb));
> +       }
>  }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to