Just for the record since the attachment of the file did not make it 
through here is the link to the test case:

http://www.apache.org/~akarasulu/BufferHashing.java

Alex

> 
> Confirmation - testcase fails:
> 

Thanks!

> Testcase: testBufferHashing took 0.063 sec
>       FAILED
> null
> > The test is simply this here:
> >
> >     public void testBufferHashing() throws Exception
> >     {
> >         HashMap l_map = new HashMap() ;
> >
> >         for( int ii = 0; ii < 10; ii++ )
> >         {
> >             ByteBuffer l_buf = ByteBuffer.allocateDirect( 4096 ) ;
> >             l_map.put( l_buf, new Integer( ii ) ) ;
> >         }
> >
> >         assertTrue( l_map.size() == 10 ) ;
> >     }
> >
> > Seems like there's a hashCode problem with the direct buffer.
> >
> > Thanks in advance,
> > Alex



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to