Menu

#4 map capacity = 0 causes exception

v1.2
open-fixed
Classes (14)
5
2004-07-27
2003-11-03
Anonymous
No

.... = new IntKeyIntOpenHashMap(0);

causes

java.lang.IllegalArgumentException
at bak.pcj.hash.Primes.nextPrime(Primes.java:132)

because nextPrime throws an exception on 0.

Minimally, the code and the documentation are out of synch.

Regards,
Crawford

Discussion

  • Søren Bak

    Søren Bak - 2004-07-26
    • status: open --> open-accepted
     
  • Søren Bak

    Søren Bak - 2004-07-26
    • labels: 488605 --> Classes
    • milestone: 265693 --> v1.2
     
  • Søren Bak

    Søren Bak - 2004-07-27

    Logged In: YES
    user_id=43402

    This has been corrected for all the open hashing classes
    (including sets). The bugfix will be released with version 1.3.

     
  • Søren Bak

    Søren Bak - 2004-07-27
    • assigned_to: nobody --> bak
    • status: open-accepted --> open-fixed
     

Log in to post a comment.