Свой кэш значений у каждого XS-перечисления - #1771
Conversation
Шесть перечислений XS оборачивают один XmlSchemaDerivationMethod и делили статический кэш значений: FromNativeValue возвращал значения последнего созданного перечисления. Кэш теперь свой у каждого перечисления. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (8)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe cached CLR enum wrapper now supports cache ownership by wrapper type. Six XML Schema enum wrappers use the updated generic form, and two tests check default schema flags after adding ChangesEnum wrapper cache
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The change isolates XML Schema enumeration caches and adds default-flag regression tests. No actionable merge-blocking risk is identified; merge after normal checks pass. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The change isolates enum values by wrapper type and corrects cross-wrapper interference. No new security bypass was identified in the reviewed paths. Runtime initialization assumptions and downstream security-sensitive uses were not fully established, so some uncertainty remains. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 9 functions across 7 files. (1 skipped: 1 unsupported.)
✨ 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 |
Шесть перечислений XS (
ЗавершенностьСхемыXS,НедопустимыеПодстановкиXSи др.) оборачивают одинXmlSchemaDerivationMethodи делили статический кэш значений: каждое новое перечисление очищало его, иFromNativeValueвозвращал значения последнего созданного. Из-за этого, например,СхемаXML.ЗавершенностьПоУмолчанию.Ограничениеоставалось Ложь после добавленияЗавершенностьСхемыXS.Ограничение.Кэш теперь свой у каждого перечисления (
ClrEnumWrapperCached<TSelf, T>), остальные наследникиClrEnumWrapperCached<T>не меняются.🤖 Generated with Claude Code
Summary by CodeRabbit