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

Use a serializable model for FileSystemResource's path

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.8.0
    • Fix Version/s: 7.10.0, 8.0.0-M9
    • Component/s: wicket
    • Labels:
      None

      Description

      FileSystemResource takes a java.nio.file.Path to load the resource.
      This leads to java.io.NotSerializableException: sun.nio.fs.WindowsPath in my case. I know this is a problem of JavaSerializer and I already found the solution to use something like Kryo Serializer instead.
      But wouldn't it be better to have the possibility to use a Model for the path anyway?

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              Claudia Hirt Claudia Hirt
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: