Menu

#45 Configuring Map impl does not work on writable caches

carbon_2.1
open-fixed
5
2004-04-16
2003-12-24
No

The internal map implementation is determined in the
initialize method in the writable cache implementation.
The code checks to see if this.dataLoader is instanceof
ConfigurableMapTypeCacheDataLoader but wait,
this.dataloader is not set until the configure method!
So, this check will always return false and the default
map type will always be used. This code should be
moved to the refreshAll method.

Discussion

  • Anand Raman

    Anand Raman - 2004-04-16

    Logged In: YES
    user_id=662386

    committed patch for the bug. The map instance is retrieved
    in the configure() life cycle call rather than the
    intialize() life cycle method

    anand

     
  • Anand Raman

    Anand Raman - 2004-04-16
    • assigned_to: nobody --> araman
    • status: open --> open-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB