Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Controlling Threads by Example
Subject:   bug in TokenSearchWork ?
Date:   2007-04-17 05:13:41
From:   didier69
In TokenSearchWork.getAllDirectories(), the rootDir is not in the result List. So, we don't have in the final result he files of the rootdir.
With :

public List getAllDirectories() throws InterruptedException {
List l = findDirs(rootDir);
l.add(rootDir); //ajout
return l;
}

it's OK.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • bug in TokenSearchWork ?
    2007-04-18 14:22:11  VirajShetty [View]

    That's a good point. It certainly is a defect. Thanks for pointing this out and providing the solution.