[android-developers] Re: Java Compatibility problems with getFields method in Android java.lang.Class

2009-02-12 Thread sancane
fadden escribió: On Feb 11, 4:54 am, sancane sanc...@gmail.com wrote: I oberved that: public Field[] getFields() Returns an array containing Field objects describing all fields which are defined. That's array is sorted as attributes are declared in the main Class in sun jdk. For

[android-developers] Re: Java Compatibility problems with getFields method in Android java.lang.Class

2009-02-12 Thread Dan Bornstein
On Thu, Feb 12, 2009 at 12:55 AM, sancane sanc...@gmail.com wrote: I only want to know if there is some way to get the declaration order of the fields in the main class. There is no such functionality in Dalvik. And to reiterate, though maybe it happens to work on your desktop VM, it is

[android-developers] Re: Java Compatibility problems with getFields method in Android java.lang.Class

2009-02-12 Thread David Turner
And maybe javac itself changed the order of declarations when building the .class file. implementation-specific really means you can't rely on it. On Thu, Feb 12, 2009 at 6:07 PM, Dan Bornstein danf...@android.com wrote: On Thu, Feb 12, 2009 at 12:55 AM, sancane sanc...@gmail.com wrote: I

[android-developers] Re: Java Compatibility problems with getFields method in Android java.lang.Class

2009-02-11 Thread fadden
On Feb 11, 4:54 am, sancane sanc...@gmail.com wrote: I oberved that: public Field[]  getFields() Returns an array containing Field objects describing all fields which are defined. That's array is sorted as attributes are declared in the main Class in sun jdk. For example, next Class is