The Artima Developer Community
Sponsored Link

Java Buzz Forum
Howards Right: public abstract class Enum<E extends Enum<E>>

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Howards Right: public abstract class Enum<E extends Enum<E>> Posted: Jul 8, 2005 10:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Howards Right: public abstract class Enum<E extends Enum<E>>
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement

Howard Lewis Ship is another on the list of "frustrated with generics".

I totally agree. If we were going to REALLY go generic, then we should have bite the bullet and made all of the changes, especially so we didn't have runtime erasure.

As someone said, all you need to do is look at the JavaDoc and see something like:

public abstract class Enum<E extends Enum<E>>

Greeeeat. Explain that to the average Java Joe.

We get compile time checking, and we make everything thrice as complicated in the mix. Is that good? Seeing Map<String> looks good and all, and then you get into writing generic code and you scream.

Read: Howards Right: public abstract class Enum&lt;E extends Enum&lt;E&gt;&gt;

Topic: MIT OpenCourse Previous Topic   Next Topic Topic: ActiveGrid - where&#8217;s the business?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use