Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

Commit fb0952f

Browse files
[tests] Add NativeAOTIgnore to InvokeVirtualFromConstructorTests (#1390)
These 3 tests fail on NativeAOT with DelegateMarshalling_MissingInteropData because PreserveRegistrations does not handle [JniAddNativeMethodRegistrationAttribute] delegate types. NativeAOT cannot generate the unmanaged-callable wrapper for CalledFromConstructorMarshalMethod at runtime. Tracking issue: dotnet/android#10950 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7a9f974 commit fb0952f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/Java.Interop-Tests/Java.Interop/InvokeVirtualFromConstructorTests.cs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ namespace Java.InteropTests {
1515
publicclassInvokeVirtualFromConstructorTests:JavaVMFixture
1616
{
1717
[Test]
18+
[Category("NativeAOTIgnore")]// https://github.com/dotnet/android/issues/10950
1819
publicvoidCreateManagedInstanceFirst_WithAllocObject()
1920
{
2021
CallVirtualFromConstructorDerived.Intermediate_FromActivationConstructor=null;
@@ -61,6 +62,7 @@ static void Dispose<T> (ref T peer)
6162
}
6263

6364
[Test]
65+
[Category("NativeAOTIgnore")]// https://github.com/dotnet/android/issues/10950
6466
publicvoidCreateManagedInstanceFirst_WithNewObject()
6567
{
6668
CallVirtualFromConstructorDerived.Intermediate_FromActivationConstructor=null;
@@ -111,6 +113,7 @@ public void CreateManagedInstanceFirst_WithNewObject ()
111113
}
112114

113115
[Test]
116+
[Category("NativeAOTIgnore")]// https://github.com/dotnet/android/issues/10950
114117
publicvoidCreateJavaInstanceFirst()
115118
{
116119
CallVirtualFromConstructorDerived.Intermediate_FromActivationConstructor=null;

0 commit comments

Comments
 (0)