Open
Bug 1696124
Opened 4 years ago
Updated 3 years ago
Implement an static analysis / warning for when a static method is called on a subclass rather than the class the method is defined in
Categories
(Developer Infrastructure :: Source Code Analysis, task, P4)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
NEW
People
(Reporter: emilio, Unassigned)
References
Details
Bug 1695578 was caused because HTMLMarqueeElement::FromNodeOrNull
was being called, expecting an HTMLMarqueeElement*
back, but instead that function didn't exist and that called nsGenericHTMLElement::FromNodeOrNull
.
This seems like a reasonable thing to catch with a static analysis pass (we definitely want this for FromNode
/ FromNodeOrNull
, but in general calling SubClass::Foo
when resolving to ParentClass::Foo
seems a bit suspicious).
Updated•4 years ago
|
Priority: -- → P4
Updated•3 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•