-
Notifications
You must be signed in to change notification settings - Fork 21
Can't access public static fields inherited from a protected static interface from scala code #9272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Imported From: https://issues.scala-lang.org/browse/SI-9272?orig=1 |
Mikel Pérez (mikelpr) said: |
A reproduction that doesn't require Android:
|
@hrhino why closed? |
Ach sorry. I thought this was the one I closed in scala/scala#6058 (was double checking regarding the regression tickets surrounding that, since the github "auto-close" didn't work). |
I would be comfortable simply closing this as "not a bug", working as designed. Scala doesn't have statics. We must interoperate with them to whatever extent that is actually needed, but I don't think we need to imitate everything about how javac handles them. (see @lrytz's comment at #11226 (comment)) |
The issue is there's no way to acess |
Ah, I hadn't understood that, thanks for clarifying. I'll modify my statement, then: doing anything at all about this seems low priority to me, but of course we'd consider a pull request if someone has a design and implementation in mind. |
Jextract splits the header class into multiple classes, which are combined via extending. Due to scala/bug#9272 we cannot access static fields in superclass headers, we work around this by not splitting the header. Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Jextract splits the header class into multiple classes, which are combined via extending. Due to scala/bug#9272 we cannot access static fields in superclass headers, we work around this by not splitting the header. Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Jextract splits the header class into multiple classes, which are combined via extending. Due to scala/bug#9272 we cannot access static fields in superclass headers, we work around this by not splitting the header. Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Jextract splits the header class into multiple classes, which are combined via extending. Due to scala/bug#9272 we cannot access static fields in superclass headers, we work around this by not splitting the header. Signed-off-by: unlsycn <unlsycn@unlsycn.com>
Uh oh!
There was an error while loading. Please reload this page.
this code, for a very ugly API:
doesn't compile
RawContacts is a public static class which implements the SyncColumns protected static interface (among others), both defined in android.provider.ContactsContract.
RawContacts inherits those public static fields from SyncColumns, but scalac just doesn't see them.
The scaloid guy wrote a workaround but it's only a hardcoded bridge for this specific API. Note that he refers to #1086 but that seems like a different bug.
The text was updated successfully, but these errors were encountered: