Igor Vaynberg wrote:
well, apparently johan ran into a situation where component? is too
restrictive...
As I understand it, Johan ran into a situation where Component? causes
*warnings* for users who use raw types. Which I've been arguing all
along that they SHOULD get: they should use
this one will do:
public X extends Component? void foo(ClassX clazz);
however, the subtle differences between this and igors version are
really hard to get.
Am 15.05.2008 um 16:31 schrieb Igor Vaynberg:
this is the usecase we are talking about. i get a compile error,
which sucks.
this is the usecase we are talking about. i get a compile error, which sucks.
public class Test
{
public static void main(String[] args)
{
Foo foo = new FooImpl();
foo.foo(IntegerComponent.class); // ok
foo.foo(Component.class); // compile error
}
public
yes and those i already came across some in wicket
i changed to ? and suddenly in extentions and/or examples compile errors
all over the place...
then i quickly turn it off again... (for now)
johan
On Thu, May 15, 2008 at 4:31 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
this is the usecase we
taken from SUN's generic tutorial:
http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf
end of page 8
snip :::
interface CollectionE
{
public boolean containsAll(Collection? c);
public boolean addAll(Collection? extends E c);
}
We could have used generic methods here instead:
interface
to generic type MarkupContainerT should be parameterized
I cannot find out, what's the warning reason, because ListView self is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from
.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com
reason, because ListView self is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com
.
References to generic type MarkupContainerT should be
parameterized
I cannot find out, what's the warning reason, because ListView
self is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non
-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
://www.nabble.com/Using-generics-with-some-non-generic-classes-in
-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL
in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com
things about Wicket is that it keeps the bloat to a minimum.
-Original Message-
From: Doug Donohoe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2008 8:21 AM
To: users@wicket.apache.org
Subject: Re: Using generics with some non-generic classes in Wicket
Somewhat related
.
-Original Message-
From: Doug Donohoe [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 14, 2008 8:21 AM
To: users@wicket.apache.org
Subject: Re: Using generics with some non-generic classes in Wicket
Somewhat related to this thread, when I moved to generics win Wicket
1.4, I created some utility
@wicket.apache.org
Subject: Re: Using generics with some non-generic classes in Wicket
Somewhat related to this thread, when I moved to generics win Wicket
1.4, I created some utility classes such as:
public class VoidContainer extends WebMarkupContainerlt;Void public
class VoidPanel extends
PROTECTED]
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17216869.html
Sent from the Wicket - User mailing list archive at Nabble.com
:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
@wicket.apache.org
Subject: Re: Using generics with some non-generic classes in Wicket
Somewhat related to this thread, when I moved to generics win Wicket
1.4, I created some utility classes such as:
public class VoidContainer extends WebMarkupContainerlt;Void public
class VoidPanel extends
]
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17216869.html
Sent from the Wicket - User mailing list archive at Nabble.com
to generic type MarkupContainerT should be
parameterized
I cannot find out, what's the warning reason, because ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket
.
References to generic type MarkupContainerT should be
parameterized
I cannot find out, what's the warning reason, because ListView self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic
ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com
be
parameterized
I cannot find out, what's the warning reason, because ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list
type MarkupContainerT should be
parameterized
I cannot find out, what's the warning reason, because
ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non
-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at
Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at
Nabble.com
this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe
should be
parameterized
I cannot find out, what's the warning reason, because
ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User
be
parameterized
I cannot find out, what's the warning reason, because
ListView
self
is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive
Igor Vaynberg wrote:
i do like generics. did i ever say otherwise? the problem here is that
if we scope something as Class? extends Component then even though
you ARE using generics in your code you will still get a warning
because we did not scope the class as Class? extends Component?.
on
the whole generics thing turned out to be
quiet a lot crappier then i thought it would.
:-)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
since then the thread has evolved into whether or not we should use ?
extends Component or ? extends Component?
-igor
On Wed, May 14, 2008 at 1:54 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote:
i do like generics. did i ever say otherwise? the problem here is that
if
On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
the whole generics thing turned out to be
quiet a lot crappier then i thought it would.
:-)
Generics for models: great. Generics for components: awful. Too bad
that stuff is contagious.
Eelco
wicket 1.6 = scala-based ? *lol*
Am 14.05.2008 um 23:28 schrieb Eelco Hillenius:
On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
the whole generics thing turned out to be
quiet a lot crappier then i thought it would.
:-)
Generics for models: great. Generics for
Igor Vaynberg wrote:
since then the thread has evolved into whether or not we should use ?
extends Component or ? extends Component?
-igor
I don't understand how that changes any of my points. The first is
incorrect (from a generics point of view) since you're referencing an
unparameterized
yeah, generics are pretty damn viral
-igor
On Wed, May 14, 2008 at 2:28 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
On Wed, May 14, 2008 at 2:25 PM, Eelco Hillenius
[EMAIL PROTECTED] wrote:
the whole generics thing turned out to be
quiet a lot crappier then i thought it would.
:-)
well, apparently johan ran into a situation where component? is too
restrictive...
-igor
On Wed, May 14, 2008 at 2:37 PM, Sebastiaan van Erk [EMAIL PROTECTED] wrote:
Igor Vaynberg wrote:
since then the thread has evolved into whether or not we should use ?
extends Component or ? extends
i think something similar happend to me with Model.valueOf(Map), so
i had to change it back to return Model instead of Model?
Gerolf
On Wed, May 14, 2008 at 11:41 PM, Igor Vaynberg [EMAIL PROTECTED]
wrote:
well, apparently johan ran into a situation where component? is too
restrictive...
with generifying of these classes ?
Thx,
Stefan Simik
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17208928.html
Sent from the Wicket - User mailing list archive at Nabble.com
) is undefined.
I can't find out, what I am doing wrong.
Thx
Stefan Simik
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html
Sent from the Wicket - User mailing list archive at Nabble.com.
(String id, T string)
{
super(id, new ModelT(string));
}
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17211220.html
Sent from the Wicket - User mailing list archive at Nabble.com
get an error: The
constructor Model(String) is undefined.
I can't find out, what I am doing wrong.
Thx
Stefan Simik
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html
Sent from the Wicket - User
be parameterized
I cannot find out, what's the warning reason, because ListView self is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17211948.html
Sent from the Wicket - User mailing list archive
to generic type MarkupContainerT should be parameterized
I cannot find out, what's the warning reason, because ListView self is
parameterized.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from
I am doing wrong.
Thx
Stefan Simik
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
View this message in context:
http
this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic
://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
generify. If I write new Model(text), I get an error:
The
constructor Model(String) is undefined.
I can't find out, what I am doing wrong.
Thx
Stefan Simik
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket
-generics-with-some-non-generic-classes-in-Wicket-tp17208928p17210525.html
Sent from the Wicket - User mailing list archive at Nabble.com.
--
View this message in context:
http://www.nabble.com/Using-generics-with-some-non-generic-classes-in-Wicket-1.4M1-tp17208928p17212325.html
-with-some-non-generic-classes-in-Wicket-tp17208928p17212015.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
52 matches
Mail list logo