-
Notifications
You must be signed in to change notification settings - Fork 544
api-compatibility
needs to check [Register]
attribute values.
#1118
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
Given the various issues we've had around The This will make things "more brittle" -- any API breakage, including member additions, will thus be reported -- but it will also capture custom attribute values, so this is quite likely a net win. |
Fixes: xamarin/monodroid#1121 Fixes: xamarin/monodroid#1123 Changes: http://github.com/xamarin/monodroid/compare/767f647151936303c294d154d0d0a4da8b601464...04b0423ea298eda7263ba23e64df63c940ebddad * xamarin/monodroid@04b0423ea: Bump android-sdk-installer, androidtools, xamarin-android (#1128) * xamarin/monodroid@b0f824253: [tools/msbuild] Update RunActivity to use Async methods. (#1127) * xamarin/monodroid@ad6ea2a3c: [tools/msbuild] changes not deployed in some cases (#1125) * xamarin/monodroid@dfa0cba44: [tools/msbuild] Add check for 'ro.boot.disable_runas' (#1124) * xamarin/monodroid@3f2ca1173: [tools/msbuild] Add additional timing information for FastDeploy. (#1126) * xamarin/monodroid@d47db99c7: [tools/msbuild] fix _Run target for .NET 6 (#1118) * xamarin/monodroid@49a6dd572: Bump to xamarin/xamarin-android/master@e0999a43 (#1120)
Related: PR #930
Related: https://bugzilla.xamarin.com/show_bug.cgi?id=60069
We need an API compatibility check that not only ensure that we don't break API -- which
tests/api-compatibility
does -- but also that we don't break semantics. The problem with Bug #60069 was that the semantics ofBuild.Serial
changed from a Java field read to a Java method invocation, and since theBuild.getSerial()
method that was invoked only existed in API-26, the result was that the formerly working expressionBuild.Serial
now threw everywhere.We need to check for and prevent this in the future.
My current idea is that we improve
mono-api-html
to check the values of custom attributes, and warn if they change. For example, withBuild.Serial
the[Register]
attribute contents changed:The text was updated successfully, but these errors were encountered: