JDK's JavaBeans PropertyDescriptor does not work reliably
Brought to you by:
charliehubbard
The JDK JavaBeans PropertyDescriptor that is used by the JSONSerializer and ObjectBinder FlexJSON classes does not return a read method (accessor/getter) in the following cases:
- The Getter-method has a generic signature of the form "T get<Property>()".
- The Getter-metohod has a signature of the form "Boolean is<Property>()". With type primitive "boolean" it just works fine.
Attached source code that fixes these shortcomings via plain use of Java Reflection API.
Fixed version of JSONSerializer and ObjectBinder
Also fixes [2613158]
I think Introspector's time has come to an end. Unfortunately, using Introspector means you can't run this on Android because it doesn't contain that class. So, if there are problems with this class I'd like to replace it so we get more portability. This patch just patches up the problem, but I think I'd like to take the time and convert to a more portable solution while fixing these problems. Thanks for the patch.