Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with PathConverter #52

Closed
CarrKnight opened this issue Apr 20, 2016 · 2 comments
Closed

Issue with PathConverter #52

CarrKnight opened this issue Apr 20, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@CarrKnight
Copy link

Here's a simple example:

        XStream stream2 = new XStream();
        String xml2 = stream2.toXML(Paths.get("directory space"));
        Path readItBack = (Path) stream2.fromXML(xml2);
        System.out.println(readItBack);

which throws the following:

---- Debugging information ----
cause-exception : java.net.URISyntaxException
cause-message : Illegal character in path at index 9: directory space
class : java.nio.file.Path
required-type : java.nio.file.Path
converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter : com.thoughtworks.xstream.converters.extended.PathConverter
path : /path
line number : 1

version : 1.4.9

Which is purely due to the space between "directory" and "space". Am I missing some settings or is this a bug?

@joehni joehni added the bug label Apr 20, 2016
@joehni joehni self-assigned this Apr 20, 2016
@joehni joehni added this to the 1.4.x milestone Apr 20, 2016
@joehni
Copy link
Member

joehni commented Apr 20, 2016

Plain bug :-/

@CarrKnight
Copy link
Author

Thank you!

@joehni joehni modified the milestones: 1.4.x, 1.4.10 Jun 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants