Article:
  Lightweight R/O Mapping
Subject:   Generic Type Information and Reflection
Date:   2005-12-11 12:25:37
From:   toga98
As the previous poster mentioned, you could add generics to the BeanReader interface. More importantly your statement that generics and reflection don't mix is incorrect or at least misleading. The generated classes still contain the generic type information and it is accessible at runtime via reflection. See java.lang.reflect for more information.
Full Threads Newest First

Showing messages 1 through 2 of 2.

  • Generic Type Information and Reflection
    2005-12-14 04:18:11  BrunoVernay [View]

    There are some info about "Generic reflections" here :
    http://www-128.ibm.com/developerworks/java/library/j-cwt11085.html#h2

    Looks like your code readability will suffer if you use it. But I won't bite you whatever you decide.

    I admire your calm, given the disrespectful responses you get for having made your work freely available and an article about it. Some criticism are more devastating than contructiv. No matter why so many switch to RoR and its friendly community.
    • Generic Type Information and Reflection
      2006-01-01 21:54:46  Norbert.Ehreke [View]

      Bruno, this is a cool link! It would have been really helpful if I had known about it and not rely so much on the Tiger: A Developer's Notebook. I'll think about dropping the authors of this one a note on that topic. But there is a valuable lesson learned from this: It's always good to check what other people claim, even if they are the super experts. Thanks a lot for the hint and also for your kind remarks.