Menu

#4 generics

2.8
open
nobody
None
2017-03-22
2014-11-06
No

generics are now only supported if included in the name, make it sensient

Discussion

  • Matthias Fuchs

    Matthias Fuchs - 2017-03-20

    Is there an update for this? How can I create a generic field, like List<Address>?

     
  • Richard van Nieuwenhoven

    just include it in the type ;-)
    newType("List<Address>")

     
  • Matthias Fuchs

    Matthias Fuchs - 2017-03-22

    Thanks, yeah I figued t hat out, but it's not obvious. Generally there is a lot of improvement potential in the API, regarding annotations for example (having non-string values etc).
    The projekt seems a bit stale, is there still some development? Or am I better of switching to something like javapoet?

     
  • Richard van Nieuwenhoven

    It is in development, not very active but we use it in a reather big project to generate source code. We will be extening java-8 features in the near future.

     

Log in to post a comment.