On Oct 25, 11:16 pm, Raman <[email protected]> wrote: > I am trying to extend a class in android.widget, specifically > AbsSpinner class for some change in behaviour. For that I need to > access some protected members of the Classes up in the hierarchy, so I > decided to put my new class in the same package android.widget > It compiles fine in Eclipse but when I run it, it gives me > java.lang.VerifyError.
You can view the failure details with "adb logcat". You cannot access protected members in this way, because your class is being loaded by a different class loader. The package has the same name, so the compiler is happy, but at runtime it's not considered to be part of the same package. In a future release of the VM this will cause an IllegalAccessError at runtime rather than a VerifyError at startup. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

