Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012930

(fs) Eliminate recursion from FileTreeWalker

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • P4
    • 8
    • None
    • core-libs
    • b89
    • Verified

    Description


      Currently the FileTreeWalker (used by Files.walkFileTree) uses recursive when walking the file tree. It would be desirable to change this to use a stack data structure. Although stack overflow has not been reported, it is confusing to see a lot of visit methods in stack traces. It would also make the FileTreeWalker more generally useful.

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: