Skip to content

Conversation

@jonpryor
Copy link
Contributor

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=4466540&view=logs&j=f31c9f97-4411-58e7-49ac-fc73f645e6b6&t=cbeb8522-7b64-5cc0-7bee-eff0e164a409

Commit 2a299eb accidentally introduced ~650 warnings to the build:

tests\invocation-overhead\jni.cs(5756,24): Warning CS0436:
The type 'JniFieldInfo' in 'D:\a\1\s\tests\invocation-overhead\invocation-overhead.cs' conflicts with the
imported type 'JniFieldInfo' in 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.
Using the type defined in 'D:\a\1\s\tests\invocation-overhead\invocation-overhead.cs'.

This was because commit 2a299eb added a declaration for JniFieldInfo
and JniMethodInfo in the Java.Interop namespace within
invocation-overhead.cs.

Fix the warnings by moving the JniFieldInfo and JniMethodInfo
declarations into the "per-handle-type" sub-namespaces.

Context: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=4466540&view=logs&j=f31c9f97-4411-58e7-49ac-fc73f645e6b6&t=cbeb8522-7b64-5cc0-7bee-eff0e164a409

Commit 2a299eb accidentally introduced ~650 warnings to the build:

	tests\invocation-overhead\jni.cs(5756,24): Warning CS0436:
	The type 'JniFieldInfo' in 'D:\a\1\s\tests\invocation-overhead\invocation-overhead.cs' conflicts with the
	imported type 'JniFieldInfo' in 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.
	Using the type defined in 'D:\a\1\s\tests\invocation-overhead\invocation-overhead.cs'.

This was because commit 2a299eb added a declaration for `JniFieldInfo`
and `JniMethodInfo` in the `Java.Interop` namespace within
`invocation-overhead.cs`.

Fix the warnings by moving the `JniFieldInfo` and `JniMethodInfo`
declarations into the "per-handle-type" sub-namespaces.
@jonpryor jonpryor requested a review from jpobst February 19, 2021 01:30
@jonpryor jonpryor merged commit 27c7bf4 into dotnet:main Feb 19, 2021
@jpobst jpobst added this to the 11.3 (16.10 / 8.10) milestone Mar 1, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 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.

2 participants