samedi 23 février 2019

Android reflection API - fields ordering

When iterate through all the declared fields in a class (class.getDeclaredFields()), the order of the fields are differ on Windows and Android platforms. On windows order is just the way fields are declared but on Android its always alphabetical. Since Java is same on all platforms, why it differs on different platforms?





Aucun commentaire:

Enregistrer un commentaire