Avoid stack inspection in database reader - #506
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe unsupported database lookup error path no longer inspects the call stack. Its exception message reports the requested lookup type, and the release notes document the trimming-warning and Native AOT compatibility change. ChangesLookup error reporting
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Avoid stack inspection in database reader
Summary
StackFrame.GetMethod()to construct the unsupported-databaselookup error.
This removes one trimming warning from the database reader without changing
lookup behavior. It is independent of the larger
MaxMind.Dbmodel-mappingwork and the separate source-generated JSON design needed by the web-service
client. The latter is tracked in #505.
Verification
net8.0.net10.0.IsAotCompatible=trueandVerifyReferenceAotCompatibility=true, theStackFrame.GetMethod()IL2026warning is gone. The five remaining warnings are the known
MaxMind.Dbreference warning and four reflection-based
System.Text.Jsonwarnings inWebServiceClient.Summary by CodeRabbit