Skip to content
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

Warning when inheriting android.app.IntentService with class-parse #1098

Open
meghandaly opened this issue Apr 12, 2023 · 1 comment
Open
Labels
bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.)

Comments

@meghandaly
Copy link

Follow up to Cannot inherit android.app.IntentService with class-parse #717

If you try to bind a class that inherits android.app.IntentService with class-parse you get the following warning:

Warning    BG8102    Class 'Microsoft.Intune.Mam.Client.Service.MAMBackgroundService' has unknown base type 'android.app.IntentService'.  
Warning    BG8102    Class 'Microsoft.Intune.Mam.Client.App.MAMIntentService' has unknown base type 'android.app.IntentService'.  

Adding the following to Metadata.xml will satisfy the build:

<attr path="/api/package[@name='com.microsoft.intune.mam.client.app']/class[@name='MAMIntentService']" name="extends">Android.App.IntentService</attr>
<attr path="/api/package[@name='com.microsoft.intune.mam.client.service']/class[@name='MAMBackgroundService']" name="extends">Android.App.IntentService</attr>

Is it expected that we need to perform that transformation?

Repo:
https://github.com/msintuneappsdk/ms-intune-app-sdk-android/blob/master/Microsoft.Intune.MAM.SDK.aar

@jpobst
Copy link
Contributor

jpobst commented Apr 12, 2023

It looks like we only fixed this for ApiXmlAdjuster and not generator. Though I'm not sure why it wouldn't have also been a problem with jar2xml if it needs to be fixed in generator as well. 🤔

I guess that transformation is indeed needed for now.

@jpobst jpobst added bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.) labels Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Component does not function as intended generator Issues binding a Java library (generator, class-parse, etc.)
Projects
None yet
Development

No branches or pull requests

2 participants