I am developing a Spring application using Struts and the Struts JSON plugin. When I run the application it gives the following error (in Firebug):
org.apache.st
In my case I was trying to access public constructor of a non public class.
class MyClass {
public MyClass() {}
}
//...
MyClass c = JsonIterator.deserialize(bytes, MyClass.class)
Throws:
ReflectionMapDecoder can not access a member of class MyClass with modifiers "public"
Added public
and it works.
public class MyClass {
public MyClass() {}
}
HTH