Tcl Library Source Code

Ticket Change Details
Login
Overview

Artifact ID: e8007f4133afd1334179896451d6a436af1b9e9fe23b330bd77f1c462973fbf2
Ticket: fdf6afed946042195041780a5b6d30b88de12315
cache::async error when calling the clear method - Attached BugFix
User & Date: anonymous 2018-08-30 20:35:21
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    cache::async 0.3 has a critical bug.
    By running the following code
    
    -----------------------------
    package require cache::async
    
    proc myDataFetcher args {  }
    
    cache::async myDataProvider myDataFetcher
    myDataProvider clear KEY
    --------------------------------------------
    
    .. an error is raised
      
    errorInfo: can't read "arg": no such variable
        while executing
    "llength $arg"
        (procedure "::cache::async::Snit_methodclear" line 18)
        invoked from within
    "myDataProvider clear KEY"
    
    
    Fixing the bug only requires to correct "arg" in "args".
    
    I included a zip with all the updated files
    - async.tcl     --  the main correction, and version changed to 0.3.1
    - pkgIndex.tcl  --  version changed from 0.3 to 0.3.1
    - async.test    --  added 2 testcases
    
    ABU
    
  5. foundin changed to: "1.19"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "af9c70d5700d5af288b87a3a9ed94e1300911d18"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "A Category Is Missing"
  15. title changed to:
    cache::async  error when calling the clear method - Attached BugFix
    
  16. type changed to: "Bug"