directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: Is Dn(Dn) useful ?
Date Thu, 30 Jun 2011 09:25:32 GMT
On Thu, Jun 30, 2011 at 2:43 PM, Emmanuel Lecharny <elecharny@gmail.com> wrote:
> Hi guys,
>
> this morning, I found a pretty big big in the Dn class. Doing something like
> :
>
> Dn original = new Dn( schemaManager, "dc=example, dc=org" );
> Dn copy = new Dn( original );
>
> System.out.println( "Original DN : " + original );
> System.out.println( "Copied DN : " + copy );
>
> produces :
>
> Original DN : dc=example, dc=org
> Copied DN : dc=org, dc=example
>
> Ok, the rdns are just copied in the reverse order. At first, I thought "WTF
> ? Why are the tests passing?" then Pierre-Arnaud replied :"Who cares to copy
> a Dn ? It's an immutable class anyway..." and I think he is plain on spot.
>
hehe, +1 let us get rid of it
> Should we remove the copy constructor (which seems not to be used anywhere )
> ?
>
> --
> Regards,
> Cordialement,
> Emmanuel L├ęcharny
> www.iktek.com
>
>



-- 
Kiran Ayyagari

Mime
View raw message