vikasfuter / google-gson

google-gson
0 stars 0 forks source link

Error While Serializing java.nio.file.Path object #595

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I am serializing an object with java.nio.file.Path object
2. registered registerTypeAdapter(Path.class, new PathConverter())

What is the expected output? What do you see instead?
Seeing attached error

What version of the product are you using? On what operating system?
using gson 2.2.4

Please provide any additional information below.
I am running on windows and the runtimeType is coming as sun.nio.fs.WindowsPath 
object and it is not converting the path value into JSON.

Original issue reported on code.google.com by raghu.ye...@gmail.com on 12 Sep 2014 at 1:44

Attachments: