-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Generate metadata for protected interfaces #236
Comments
Only the first part of issue is resolved. Currently you can access static members on protected interfaces as follows android.provider.ContactsContract.SyncColumns.ACCOUNT_TYPE but the functionality to access interface members on the types that implement the interface is not ready yet. |
This comment was marked as abuse.
This comment was marked as abuse.
The fix for this issue is in the protected interface Interface1 {
static int FLAG = 123;
}
public class Class1 implements Interface1 {
}
int flag = Class1.FLAG; This is yet to be implemented. |
functionality to access interface members on the types that implement the interface is enabled with: |
The following constant:
has no metadata generated for it because the declaring interface is
protected
. We should enable this scenario and process protected interface in ourmetadata-generator
tool.Additionally, the better approach would be to attach all such constants to the implementing type directly, much like this is done in Android. Otherwise code that is available in the internet will not work with our Runtime and we will have to explain this explicitly.
The text was updated successfully, but these errors were encountered: