Commit 991bc62
[Tests] Skip XA4212 on NativeAOT (trimmable typemap)
The XA4212 "custom IJavaObject not supported" diagnostic is produced by the
Cecil-based XAJavaTypeScanner, which runs on the managed typemap path (via
AssemblyModifierPipeline in _RunAfterILLinkAdditionalSteps) and the llvm-ir path
(which passes ErrorOnCustomJavaObject to its generator).
Now that the trimmable typemap is the NativeAOT default, the type scan happens in
the System.Reflection.Metadata-based TrimmableTypeMapGenerator, which does not yet
perform the custom-IJavaObject check, so XA4212 is never raised and the build
wrongly succeeds. Skip the NativeAOT case with a documented follow-up until the
diagnostic is added to the trimmable generator.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 94f450c7-781d-4019-a56c-fae1c456b9a71 parent 0eb136a commit 991bc62
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
1062 | 1068 | | |
1063 | 1069 | | |
1064 | 1070 | | |
| |||
0 commit comments