RFR [8014066] Mistake in documentation of ArrayList#removeRange (original) (raw)
Doug Lea dl at cs.oswego.edu
Fri Mar 14 12:22:07 UTC 2014
- Previous message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Next message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 03/14/2014 08:07 AM, David Holmes wrote:
So what you are saying is that protected overrides of protected methods are not required to honor the specification of the super method?
Not always, but ...
That certainly gives some implementation flexibility, but I don't think I've ever seen it expressed as a rule.
... this is the convention for @implSpecs for default methods on interfaces. Which probably would have been used here instead of AbstractList had they existed back in JDK1.2.
-Doug
- Previous message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Next message: RFR [8014066] Mistake in documentation of ArrayList#removeRange
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]