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

ResourceNameIterator should not produce resource names with trailing dot

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.0.0-beta1
    • 6.0.0-beta1
    • None
    • None

    Description

      Currently when a ResourceNameIterator is created with a null extension (and the path doesn't contain an extension suffix), it produces resource names with a trailing dot.
      This is caused by ExtensionResourceNameIterator returning an empty String when it was created with a null extension.

      The current behavior seems to be utilized in PropertiesFactory#load() only, where the loader's extension is just appended to the path, knowing that is has the trailing dot.
      Apart from that the current implementation is just confusing.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: