Closed
Bug 500870
Opened 15 years ago
Closed 15 years ago
Add "override" method annotation and enforce that it matches a base class's virtual method
Categories
(Developer Infrastructure :: Source Code Analysis, enhancement)
Developer Infrastructure
Source Code Analysis
Tracking
(status1.9.2 .4-fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
status1.9.2 | --- | .4-fixed |
People
(Reporter: jruderman, Assigned: benjamin)
References
Details
(Whiteboard: [fixed-lorentz])
Attachments
(1 file)
7.34 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
Would be nice to be able to annotate methods as intending to overriding a virtual method. Then, if a base class changes unexpectedly, the derived class will fail to compile instead of mysteriously failing to work properly.
Assignee | ||
Updated•15 years ago
|
Keywords: student-project
Assignee | ||
Updated•15 years ago
|
Whiteboard: [good first bug]
Assignee | ||
Comment 1•15 years ago
|
||
Assignee | ||
Updated•15 years ago
|
Keywords: student-project
Whiteboard: [good first bug]
Assignee | ||
Updated•15 years ago
|
Attachment #401262 -
Flags: review? → review?(tglek)
Comment 2•15 years ago
|
||
Comment on attachment 401262 [details] [diff] [review]
Add NS_OVERRIDE annotation and enforcement, rev. 1
With following fixed:
signaturesMatch should check shortname instead of doing the check externally. I did in bug 512726, so lets land this one after that.
Attachment #401262 -
Flags: review?(tglek) → review+
Assignee | ||
Comment 3•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 4•15 years ago
|
||
Whiteboard: [fixed-lorentz]
Comment 5•15 years ago
|
||
Blanket approval for Lorentz merge to mozilla-1.9.2
a=beltzner for 1.9.2.4 - please make sure to mark status1.9.2:.4-fixed
Assignee | ||
Comment 6•15 years ago
|
||
Merged into 1.9.2 at http://hg.mozilla.org/releases/mozilla-1.9.2/rev/84ba4d805430
status1.9.2:
--- → .4-fixed
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 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
•