Re: Vector (was Re: Change character in string)
On Mar 13, 2:53 pm, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:
Lew <l...@lewscanon.com> wrote:
On Mar 13, 11:23 am, Andreas Leitgeb <a...@gamma.logic.tuwien.ac.at>
wrote:
Lew <l...@lewscanon.com> wrote:
RedGrittyBrick wrote:
One thing you can do with the former but not
the latter is compile without warnings.
Please go back the thread and read that original post by RGB.
Message-ID: <49ba3886$0$2514$da0feed9@news.zen.co.uk>
Well, of course. But the point wasn't about 'ArrayList' vs. 'Vector'=
,
it was about inclusion or omission of the type argument.
Where did you gather that from?
Will it boil down to Shakespeare again?
Please, you go back [to] the thread and read that original post by
RGB.
Here is the exact quote from RGB, without any re-arrangement of
attributions other than removal of a quote of something I wrote that
didn't figure in:
RGB wrote:
Andreas Leitgeb wrote:
....
I think you still owe me an example of what I can do after
List<Foo> lf= Collections.synchronizedList(new ArrayList());
which I cannot do after
List<Foo> lf= new Vector();
to support your flexibility claim.
One thing you can do with the former but not the latter is compile
without warnings. The latter gives me this warning in Eclipse:
"Type safety: The expression of type Vector needs unchecked conversion
to conform to List<Foo>"
The statement that RGB made is exactly true for the exact, specific
example that you posted. There is absolutely nothing in RGB's post
that states that this is generally true for all uses of 'ArrayList'
vs. 'Vector', only for the specific example that you posted. In that
example, one 'new' expression lacked a type parameter.
--
Lew