Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-339

MockServletContext.createTempDir() wrong file names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.0 branch (discontinued)
    • 2.0 branch (discontinued)
    • wicket
    • None

    Description

      There is a counter in createTempDir() that is supposed to create directories like:

      • dir0
      • dir1
      • dir2

      But currently it creates the following directories:

      • dir0
      • dir01
      • dir012

      Moreover, testing every path with File.exists() can affect performance, I would advise to use UUID and not check that the directory exists, as UUID is really unique for the running JVM.

      Attachments

        Activity

          People

            jbq Jean-Baptiste Quenot
            jbq Jean-Baptiste Quenot
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: