Skip to content

Conversation

@atsushieno
Copy link
Contributor

At 9a73c4c we became much more precise about enumification, because
formerly we only pull int constant information through DroidDoc only in
the latest API.

Besides, we had been precise on which int fields are final and which aren't,
in API XML metadata.

Since we switched the information source to API XML metadata, such final
fields that were NOT final are strictly converted to enums only in the
constant-ified API Level.

That was regarded as regression at #1078 .

The solution to this situation is: treat them as constants.

To do so, now generate-const-list-2.cs is changed to NOT check if an int
field is final or not, until at the merge phase. Then we filter out those
non-constant fields (which are not much).

This uncovers those "formerly non constant" fields too. Fortunately such
fields didn't exist other than the ones at PR #1078 mentioned (this
generate-const-list-2.exe now prints out such fields now.)

…s too.

At  9a73c4c we became much more precise about enumification, because
formerly we only pull int constant information through DroidDoc only in
the latest API.

Besides, we had been precise on which int fields are final and which aren't,
in API XML metadata.

Since we switched the information source to API XML metadata, such final
fields that were NOT final are strictly converted to enums only in the
constant-ified API Level.

That was regarded as regression at dotnet#1078 .

The solution to this situation is: treat them as constants.

To do so, now generate-const-list-2.cs is changed to NOT check if an int
field is final or not, until at the merge phase. Then we filter out those
non-constant fields (which are not much).

This uncovers those "formerly non constant" fields too. Fortunately such
fields didn't exist other than the ones at PR dotnet#1078 mentioned (this
generate-const-list-2.exe now prints out such fields now.)
@atsushieno atsushieno requested a review from jonpryor December 7, 2017 06:13
@jonpryor jonpryor merged commit 50c0c15 into dotnet:master Dec 7, 2017
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Apr 18, 2020
Changes: https://github.com/xamarin/monodroid/compare/846697287fb32c38b54ddd2fe21964b9159b2750...16cb1cb1ac7c472207023953b7bb3970f7c9aa54

  * xamarin/monodroid@16cb1cb1a: Bump to xamarin/androidtools/master@068e4f5 (dotnet#1084)
  * xamarin/monodroid@8f61f0cae: Bump to xamarin/android-sdk-installer/master@d9276b4 (dotnet#1085)
  * xamarin/monodroid@bec720cd0: Bump to xamarin/jar2xml@4125da65 (dotnet#1083)
  * xamarin/monodroid@a49e901d6: [tools/msbuild] update <BuildApk/> task inputs (dotnet#1082)
  * xamarin/monodroid@b9f16c002: Bump to xamarin/androidtools/master@5412dc8 (dotnet#1081)
  * xamarin/monodroid@673a74961: [.NET 5] fix for ALC isolation between assemblies (dotnet#1080)
jonpryor added a commit that referenced this pull request Apr 19, 2020
Changes: https://github.com/xamarin/monodroid/compare/846697287fb32c38b54ddd2fe21964b9159b2750...16cb1cb1ac7c472207023953b7bb3970f7c9aa54

  * xamarin/monodroid@16cb1cb1a: Bump to xamarin/androidtools/master@068e4f5 (#1084)
  * xamarin/monodroid@8f61f0cae: Bump to xamarin/android-sdk-installer/master@d9276b4 (#1085)
  * xamarin/monodroid@bec720cd0: Bump to xamarin/jar2xml@4125da65 (#1083)
  * xamarin/monodroid@a49e901d6: [tools/msbuild] update <BuildApk/> task inputs (#1082)
  * xamarin/monodroid@b9f16c002: Bump to xamarin/androidtools/master@5412dc8 (#1081)
  * xamarin/monodroid@673a74961: [.NET 5] fix for ALC isolation between assemblies (#1080)
jonpryor added a commit that referenced this pull request Apr 23, 2020
Changes: https://github.com/xamarin/monodroid/compare/70a11642ad39b6b647e02f0df62c84f8e6c2e1f9...d35c4221bb1c9b52b5280a4380598aaa95b332b8

  * xamarin/monodroid@d35c4221b: Bump to xamarin/jar2xml@4125da65 (#1083)
  * xamarin/monodroid@ea68087b0: [tools/msbuild] update <BuildApk/> task inputs (#1082)
  * xamarin/monodroid@16c2eb29e: Bump to xamarin/androidtools/d16-7@fba677c4 (#1081)
  * xamarin/monodroid@53abd4f03: [.NET 5] fix for ALC isolation between assemblies (#1080)
@github-actions github-actions bot locked and limited conversation to collaborators Feb 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants