Apache JDO Project - Patch for JDO-118

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > August 2005 > Patch for JDO-118





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Patch for JDO-118
Michael Watzek

2005-08-11, 5:45 pm

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/
-------------------------------------------------------------------

Michelle Caisse

2005-08-12, 2:45 am

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)singleFieldIdent
ity).getKey());
>+ return this.id. equals(((ObjectIdentity)singleFieldIdent
ity).getKey());
> }
>
> public String toString() {
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com