Hibernate3 Example of Annotation Hell :) Growl: An OS Service which we should all have access too
Jul 08

Howards Right: public abstract class Enum<E extends Enum<E>>

Java, Tech Add comments

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.

6 Responses to “Howards Right: public abstract class Enum<E extends Enum<E>>”

  1. Maik Says:

    For an explanation read this: http://madbean.com/2004/mb2004-3/

  2. Anjan Bacchu Says:

    Hi Dion,

    Compare this to say, WTL’s complexity(aka ATL — http://www.microsoft.com/resources/sharedsource/Licensing/WTL.mspx)
    and then you will come away happy :-)

    Happiness is relative — exponsing oneself to a lil more complex stuff from MS can make one happy(ier)!

    BR,
    ~A

  3. Sumit Says:

    When is the first book specifically on Java Generics going to appear? This thing needs a well-written book to grasp and try out.

    For that matter, when is a book specifically on Concurrency Tiger Style going to appear?

  4. kalidas Says:

    why we r going abstarct class in java

  5. anime Says:

    anime

  6. anime Says:

    anime

Leave a Reply

Spam is a pain, I am sorry to have to do this to you, but can you answer the question below?

Q: Type in the word 'cricket'