db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Caisse <Michelle.Cai...@Sun.COM>
Subject Re: Patch for JDO-118
Date Fri, 12 Aug 2005 03:07:57 GMT
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() {
>  
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message