RFR [8014066] Mistake in documentation of ArrayList#removeRange (original) (raw)
David Holmes david.holmes at oracle.com
Sun Mar 16 04:46:51 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 14/03/2014 10:22 PM, Doug Lea wrote:
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.
However @throws is not part of implSpecs. AbstractList should have defined the potential exceptions and subclass implementations would have to conform.
David
-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 ]