Open
Bug 1510614
Opened 6 years ago
Updated 2 years ago
Lint Warning: Default Parcel Class Loader
Categories
(GeckoView :: General, enhancement, P5)
Tracking
(Not tracked)
NEW
People
(Reporter: fluffyemily, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug)
The documentation for Parcel#readParcelable(ClassLoader) (and its variations) says that you can pass in null to pick up the default class loader. However, that ClassLoader is a system class loader and is not able to find classes in your own application.
If you are writing your own classes into the Parcel (not just SDK classes like String and so on), then you should supply a ClassLoader for your application instead; a simple way to obtain one is to just call getClass().getClassLoader() from your own class.
http://developer.android.com/reference/android/os/Parcel.html
This issue currently affects:
FormatParam.java
Updated•6 years ago
|
Updated•6 years ago
|
Product: Firefox for Android → GeckoView
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•