Rémi Forax forax at
Mon Apr 21 12:39:40 UTC 2008

Hi all,
  Is someone knows why package sun.reflect.generics is so complex ?

  This package (and subpackage) it used to reify a generics signatures
  to a java.lang.reflect.Type tree.
  It creates a parser, parse the signature to create an AST,
  and use a visitor to create the tree.

  This package, contains in my opinion, lot of unecessary garbage.
  - It creates an AST even if the Type tree can be created in one pass.
  - A bunch of interfaces has only one implementation like Visitor.
  - Use a visitor even if there is only one operation.
  - Use lots of generics can be removed because only one instanciation
    is used.


More information about the core-libs-dev mailing list