You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by Michael Watzek <mw...@spree.de> on 2005/08/11 15:02:56 UTC

Patch for JDO-118

Hi,

please find the attached patch, fixing a copy/paste bug in class 
"PCPointSingleFieldDate". This patch fixes JIRA JDO-118.

Regards,
Michael
-- 
-------------------------------------------------------------------
Michael Watzek                  Tech@Spree Engineering GmbH
mailto:mwa.tech@spree.de        Buelowstr. 66
Tel.:  ++49/30/235 520 36       10783 Berlin - Germany
Fax.:  ++49/30/217 520 12       http://www.spree.de/
-------------------------------------------------------------------

Re: Patch for JDO-118

Posted by Michelle Caisse <Mi...@Sun.COM>.
Hi Michael,

I checked this in.

-- Michelle

Michael Watzek wrote:

> Hi,
>
> please find the attached patch, fixing a copy/paste bug in class 
> "PCPointSingleFieldDate". This patch fixes JIRA JDO-118.
>
> Regards,
> Michael
>
>------------------------------------------------------------------------
>
>Index: test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldDate.java
>===================================================================
>--- test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldDate.java	(revision 231422)
>+++ test/java/org/apache/jdo/tck/pc/singlefieldidentity/PCPointSingleFieldDate.java	(working copy)
>@@ -18,8 +18,8 @@
> 
> import java.util.Date;
> 
>+import javax.jdo.identity.ObjectIdentity;
> import javax.jdo.identity.SingleFieldIdentity;
>-import javax.jdo.identity.StringIdentity;
> 
> /**
>  * The PC class for testing <code>ObjectIdentity</code>.
>@@ -98,7 +98,7 @@
>      * of this class.
>      */
>     public boolean equalsPKField(SingleFieldIdentity singleFieldIdentity) {
>-        return this.id.equals(((StringIdentity)singleFieldIdentity).getKey());
>+        return this.id.equals(((ObjectIdentity)singleFieldIdentity).getKey());
>     }
>     
>     public String toString() {
>  
>