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

(fs) Eliminate recursion from FileTreeWalker

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b89
    • Verification:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: