BUG (small) in java.util.Vector

Jan Grant Jan.Grant at bristol.ac.uk
Tue Jan 18 01:10:34 PST 2000


On Fri, 14 Jan 2000, Archie Cobbs wrote:

> jan grant writes:
> > Since this class now implements java.util.List, it's worth pointing out
> > that
> > java.util.Vector doesn't supply an implementation for add (although it
> > has the
> > functionally identical addElement)
> 
> It's implemented in the superclass, AbstractList. Is there a functional
> reason we should override it (versus just to do the same as JDK does)?

So that it doesn't throw UnsupportedOperationException?

jan

PS. This is with the 1.0.5 I built the other day.
-- 
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant at bris.ac.uk
Spreadsheet through network. Oh yeah.


More information about the kaffe mailing list