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

Use a serializable model for FileSystemResource's path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.8.0
    • 7.10.0, 8.0.0-M9
    • wicket
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: