You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a4458be
Browse filesBrowse the repository at this point in the historyBrowse files
extractor: normalize new-delegate handlers in event release-matching
Event release-matching keyed on raw handler text, so `+= new
PropertyChangedEventHandler(H)` never matched a bare `-= H` (the dominant
SectorTS teardown idiom), and IsHandler rejected delegate-creation outright —
so a wrapped `-=` was not collected and the P-004 static-handler exemption was
skipped for a wrapped static method. Correctly torn-down subscriptions were
reported as OWN001 false positives (~253/330 STS subscription findings use
explicit delegate-creation).
Add NormalizeHandler (unwrap `new SomeHandler(X)` -> `X`) and apply it at the
release-key sites (+= released check, -= collect + IsHandler gate) and inside
IsStaticHandler; the emitted handler fact text is unchanged.
Regression: corpus/wpf/subscription-explicit-delegate-release (before caught /
after clean). Verified real STS eDeclarant.xaml.cs 4->0, BranchDescription.cs ->0.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments