Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Attributes not added correctly to nodes with text-only content #1

Open
hpehl opened this issue Oct 29, 2012 · 0 comments
Open

Attributes not added correctly to nodes with text-only content #1

hpehl opened this issue Oct 29, 2012 · 0 comments
Assignees
Milestone

Comments

@hpehl
Copy link
Owner

hpehl commented Oct 29, 2012

What steps will reproduce the problem?

  1. Create a POJO marked-up as such:
public class SomeClass
{
@Path("field")
public String text;
@Path("field/@name")
public String name;
}
  1. Create an instance of SomeClass, give both fields values and attempt to map to XML with Piriti.

What is the expected output? What do you see instead?

Expected:

<?xml version="1.0" encoding="UTF-8"?>
<someClass>
 <field name="nameValue">value</field>
</someClass>

Actual result:

<?xml version="1.0" encoding="UTF-8"?>
<someClass>
 <field>value</field>
 <field name="nameValue"/>
</someClass>

What version of the product are you using? On what operating system?
0.8, Java 1.6, GWT 2.4.0

Please provide any additional information below.

Mapping XML -> POJO works fine, it's just POJO -> XML that breaks.

@ghost ghost assigned hpehl Oct 29, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant