On Wednesday 28 January 2004 11:23, Leo Sutic wrote:
> The type parameter T gets "erased" so *at runtime*, T = Object.
> This makes your test:
>
> if (o instanceof Object) {
> return o;
> } else {
> throw new StupidAvalonProgrammerException();
> }
Why does Sun make a half-baked effort out of it??
Instead of introducing this "PoBS", why not do it runtime supported and call
it Java3 or Java2 Ver 2.0 (whatever). Now we will get another mechanism that
will be raped by the programmers, making a lot of the code even harder to
read and understand. I am not happy about this.
Niclas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]