Community
Participate
Working Groups
Created attachment 240648 [details] Maven project containing JUnit test to replicate the issue. Please have a look at the attached project containing the MoxyIssue1 test. It's a maven project which replicates some of the issues I'm seeing with marshalling maps to JSON using the approach document here: http://blog.bdoughan.com/2013/06/moxys-xmlvariablenode-using-maps-key-as.html I tried developing a generic map adapter because I have multiple maps that I'd like to serialize to JSON. However, the generic adapter always fails with IllegalArgumentException: Can not set java.lang.String field abc to ...MapToListAdapter$AdaptedMap Here is what I've tried: - Using sub-classes of a generic adapter (A.java) - Using the same generic adapter twice (B.java) The only thing which works is: - Using a non-generic version (AAdapter.java in RootObj.java) However, if I create a second non-generic version (which really duplicates a lot of code), it fails again (see RootObj2.java). All tests are collected in MoxyIssue1.java. (Note, the maven project uses Moxy 2.5.2. But it also fails with Moxy 2.6.0 nighty from end of February.)
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink