You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Morgan Delagrange <md...@yahoo.com> on 2002/02/25 19:11:47 UTC

Release version constant in TestObject [was: Re: cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestObject.java]

Sorry, I didn't notice this email initially.  This constant makes it
possible for TestMap (and other subclasses, if necessary) to automatically
check CVS for a versionX copy of a Serialized object, so we can make sure
that compatibility is maintained.  See, for example,
TestMap.getCanonicalFullMapName(Map map).

I'll check in a comment to that effect.

- Morgan

----- Original Message -----
From: "Daniel Rall" <dl...@finemaltcoding.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Friday, February 22, 2002 5:22 PM
Subject: Re: cvs commit:
jakarta-commons/collections/src/test/org/apache/commons/collections
TestObject.java


> What's the point of this one (just curious)?
>
> morgand@apache.org writes:
>
> > morgand     02/02/22 14:01:32
> >
> >   Modified:    collections/src/test/org/apache/commons/collections
> >                         TestObject.java
> >   Log:
> >   constant to indicate which major release we are working on
> >
> >   Revision  Changes    Path
> >   1.4       +6 -4
jakarta-commons/collections/src/test/org/apache/commons/collections/TestObje
ct.java
> >
> >   Index: TestObject.java
> >   ===================================================================
> >   RCS file:
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
s/TestObject.java,v
> >   retrieving revision 1.3
> >   retrieving revision 1.4
> >   diff -u -r1.3 -r1.4
> >   --- TestObject.java 22 Feb 2002 02:18:50 -0000 1.3
> >   +++ TestObject.java 22 Feb 2002 22:01:32 -0000 1.4
> >   @@ -1,7 +1,7 @@
> >    /*
> >   - * $Header:
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
s/TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp $
> >   - * $Revision: 1.3 $
> >   - * $Date: 2002/02/22 02:18:50 $
> >   + * $Header:
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
s/TestObject.java,v 1.4 2002/02/22 22:01:32 morgand Exp $
> >   + * $Revision: 1.4 $
> >   + * $Date: 2002/02/22 22:01:32 $
> >     *
> >     *
====================================================================
> >     *
> >   @@ -90,12 +90,14 @@
> >     * test case (method) your {@link Object} fails.
> >     *
> >     * @author Rodney Waldhoff
> >   - * @version $Id: TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp $
> >   + * @version $Id: TestObject.java,v 1.4 2002/02/22 22:01:32 morgand
Exp $
> >     */
> >    public abstract class TestObject extends TestCase {
> >        public TestObject(String testName) {
> >            super(testName);
> >        }
> >   +
> >   +    public static final String COLLECTIONS_VERSION = "version2";
> >
> >        /**
> >         * Return a new, empty {@link Object} to used for testing.
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Release version constant in TestObject [was: Re: cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestObject.java]

Posted by Morgan Delagrange <md...@yahoo.com>.
Although, come to think of it, it may make sense to have a separate
"compatibility" constant, so that subclasses can indicate compatibility with
earlier versions.

- Morgan

----- Original Message -----
From: "Daniel Rall" <dl...@finemaltcoding.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Cc: "Morgan Delagrange" <mo...@apache.org>
Sent: Monday, February 25, 2002 12:19 PM
Subject: Re: Release version constant in TestObject [was: Re: cvs commit:
jakarta-commons/collections/src/test/org/apache/commons/collections
TestObject.java]


> Ah, okay.  Thanks Morgan.
>
> Dan
>
>
> "Morgan Delagrange" <md...@yahoo.com> writes:
>
> > Sorry, I didn't notice this email initially.  This constant makes it
> > possible for TestMap (and other subclasses, if necessary) to
automatically
> > check CVS for a versionX copy of a Serialized object, so we can make
sure
> > that compatibility is maintained.  See, for example,
> > TestMap.getCanonicalFullMapName(Map map).
> >
> > I'll check in a comment to that effect.
> >
> > - Morgan
> >
> > ----- Original Message -----
> > From: "Daniel Rall" <dl...@finemaltcoding.com>
> > To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> > Sent: Friday, February 22, 2002 5:22 PM
> > Subject: Re: cvs commit:
> > jakarta-commons/collections/src/test/org/apache/commons/collections
> > TestObject.java
> >
> >
> >> What's the point of this one (just curious)?
> >>
> >> morgand@apache.org writes:
> >>
> >> > morgand     02/02/22 14:01:32
> >> >
> >> >   Modified:    collections/src/test/org/apache/commons/collections
> >> >                         TestObject.java
> >> >   Log:
> >> >   constant to indicate which major release we are working on
> >> >
> >> >   Revision  Changes    Path
> >> >   1.4       +6 -4
> >
jakarta-commons/collections/src/test/org/apache/commons/collections/TestObje
> > ct.java
> > > >
> >> >   Index: TestObject.java
> >> >   ===================================================================
> >> >   RCS file:
> >
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> > s/TestObject.java,v
> > > >   retrieving revision 1.3
> >> >   retrieving revision 1.4
> >> >   diff -u -r1.3 -r1.4
> >> >   --- TestObject.java 22 Feb 2002 02:18:50 -0000 1.3
> >> >   +++ TestObject.java 22 Feb 2002 22:01:32 -0000 1.4
> >> >   @@ -1,7 +1,7 @@
> >> >    /*
> >> >   - * $Header:
> >
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> > s/TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp $
> > > >   - * $Revision: 1.3 $
> >> >   - * $Date: 2002/02/22 02:18:50 $
> >> >   + * $Header:
> >
/home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> > s/TestObject.java,v 1.4 2002/02/22 22:01:32 morgand Exp $
> > > >   + * $Revision: 1.4 $
> >> >   + * $Date: 2002/02/22 22:01:32 $
> >> >     *
> >> >     *
> > ====================================================================
> > > >     *
> >> >   @@ -90,12 +90,14 @@
> >> >     * test case (method) your {@link Object} fails.
> >> >     *
> >> >     * @author Rodney Waldhoff
> >> >   - * @version $Id: TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp
$
> >> >   + * @version $Id: TestObject.java,v 1.4 2002/02/22 22:01:32 morgand
> > Exp $
> > > >     */
> >> >    public abstract class TestObject extends TestCase {
> >> >        public TestObject(String testName) {
> >> >            super(testName);
> >> >        }
> >> >   +
> >> >   +    public static final String COLLECTIONS_VERSION = "version2";
> >> >
> >> >        /**
> >> >         * Return a new, empty {@link Object} to used for testing.
> >>
> >> --
> >> To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > --
> > To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> > For additional commands, e-mail:
<ma...@jakarta.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Release version constant in TestObject [was: Re: cvs commit: jakarta-commons/collections/src/test/org/apache/commons/collections TestObject.java]

Posted by Daniel Rall <dl...@finemaltcoding.com>.
Ah, okay.  Thanks Morgan.

Dan


"Morgan Delagrange" <md...@yahoo.com> writes:

> Sorry, I didn't notice this email initially.  This constant makes it
> possible for TestMap (and other subclasses, if necessary) to automatically
> check CVS for a versionX copy of a Serialized object, so we can make sure
> that compatibility is maintained.  See, for example,
> TestMap.getCanonicalFullMapName(Map map).
>
> I'll check in a comment to that effect.
>
> - Morgan
>
> ----- Original Message -----
> From: "Daniel Rall" <dl...@finemaltcoding.com>
> To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> Sent: Friday, February 22, 2002 5:22 PM
> Subject: Re: cvs commit:
> jakarta-commons/collections/src/test/org/apache/commons/collections
> TestObject.java
>
>
>> What's the point of this one (just curious)?
>>
>> morgand@apache.org writes:
>>
>> > morgand     02/02/22 14:01:32
>> >
>> >   Modified:    collections/src/test/org/apache/commons/collections
>> >                         TestObject.java
>> >   Log:
>> >   constant to indicate which major release we are working on
>> >
>> >   Revision  Changes    Path
>> >   1.4       +6 -4
> jakarta-commons/collections/src/test/org/apache/commons/collections/TestObje
> ct.java
> > >
>> >   Index: TestObject.java
>> >   ===================================================================
>> >   RCS file:
> /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> s/TestObject.java,v
> > >   retrieving revision 1.3
>> >   retrieving revision 1.4
>> >   diff -u -r1.3 -r1.4
>> >   --- TestObject.java 22 Feb 2002 02:18:50 -0000 1.3
>> >   +++ TestObject.java 22 Feb 2002 22:01:32 -0000 1.4
>> >   @@ -1,7 +1,7 @@
>> >    /*
>> >   - * $Header:
> /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> s/TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp $
> > >   - * $Revision: 1.3 $
>> >   - * $Date: 2002/02/22 02:18:50 $
>> >   + * $Header:
> /home/cvs/jakarta-commons/collections/src/test/org/apache/commons/collection
> s/TestObject.java,v 1.4 2002/02/22 22:01:32 morgand Exp $
> > >   + * $Revision: 1.4 $
>> >   + * $Date: 2002/02/22 22:01:32 $
>> >     *
>> >     *
> ====================================================================
> > >     *
>> >   @@ -90,12 +90,14 @@
>> >     * test case (method) your {@link Object} fails.
>> >     *
>> >     * @author Rodney Waldhoff
>> >   - * @version $Id: TestObject.java,v 1.3 2002/02/22 02:18:50 mas Exp $
>> >   + * @version $Id: TestObject.java,v 1.4 2002/02/22 22:01:32 morgand
> Exp $
> > >     */
>> >    public abstract class TestObject extends TestCase {
>> >        public TestObject(String testName) {
>> >            super(testName);
>> >        }
>> >   +
>> >   +    public static final String COLLECTIONS_VERSION = "version2";
>> >
>> >        /**
>> >         * Return a new, empty {@link Object} to used for testing.
>>
>> --
>> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>