directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject DN, RDN and AVA imutability...
Date Sun, 26 Sep 2010 18:07:41 GMT
  Hi guys,

while investigating the NPE Stefan pointed out today, I found that the 
DN, RDN and AVA are not completely immutable.

AVA has two methods that can modify it :
getNormValue(),
getUpValue()

RDN has many methods modifying it contents :
clear(),
getAtav(),
getAttributeTypeAndValue( String type ),
getNormValue(),
getUpValue(),
getValue( String type ),
iterator(),
normalize( ... ) (all the methods),
readExternal( ObjectInput in )

DN has some too :
DN( RDN )
add( RDN )
addAll( int posn, DN )
addAllNormalized()
getRdn()
getRdn( int pos )
normalize(...)

We have to fix those guys...

-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com


Mime
View raw message