This:
@com.twolattes.json.Entity
static public class Foo {
@Value(name="bar") int foo;
@Value int getFoo() { return foo; }
}
@Test
public void testMarshaller() {
Foo foo = new Foo();
foo.foo = 42;
JSONObject o = Marshaller.create(Foo.class).marshall(foo);
}
will throw:
java.lang.IllegalArgumentException: Value with name foo is described
multiple times.
Original issue reported on code.google.com by dmmo...@gmail.com on 8 Aug 2008 at 4:45
Original issue reported on code.google.com by
dmmo...@gmail.com
on 8 Aug 2008 at 4:45