directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@gmail.com>
Subject Re: Potential for ClassCastException in DefaultPartitionNexus.java?
Date Thu, 14 Feb 2008 08:44:45 GMT
Icky Dude wrote:
> Hi,
>
> Is there any way that the following code wouldn't produce a ClassCastException?
>
> SearchResult result = new ServerSearchResult( "", null, ( Attributes )
> getRootDSE( null ).clone(), false );
>   
No. You will get a plain old ClassCastException !

Good catch. I will fix this bug.

FYI, this went through the radar when I modified the getRootDSE method. 
This is why casts are wrong, too.

Last, not least, we need a test case to catch such issues ...

-- 
--
cordialement, regards,
Emmanuel L├ęcharny
www.iktek.com
directory.apache.org



Mime
View raw message