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