Johan Compagner wrote:
On Mon, Jun 2, 2008 at 9:33 PM, Martin Funk <[EMAIL PROTECTED]>
wrote:
Hi Sebastiann,
just for clarifying my understanding of the vocabulary:
A_HomePage extends WebPage
and
B_HomePage extends WebPage<Void>
are both non-generified java classes.
No the last one is generified..
The first one is a raw type.
Ok, maybe we have to be more precise and maybe the term generified is not.
Following this:
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.1.2
I'd still say: class A_HomePage extends WebPage and class B_HomePage
extends WebPage<Void>
are both classes that are not generic as they don't declare a type variable.
Esp. if the signature of 'public abstract Class<? extends Page<?>>
getHomePage();' stays that way the HomePage can't be generified.
No as far as i can see, the home page MUST be generified thats the whole
problem with that constructo
I read: Class<? extends Page<?>>
as: the method returns a parametrized class object, where the type
parameter is a non generic type extending the generic type Page.
Though I have no prove on this.
What would happen if we did:
public abstract Class<? extends Page>
and have a supresswarning in our code.
I'd say its worth a try, but also I'd take the need for the
supresswarning as a strong signal for keeping components non-generic
alltogether.
mf
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]