dynamic-code

C# Dynamic Type Initializer

I'm trying to build something like the C# type initalizer dynamically: MyClass class = new MyClass { MyStringProperty= inputString }; I want to build a generic method that reflects over a given type once and returns a delegate which creates a new instance of the class and populates it based on the input parameter. The method signature...

Java Dynamic Code Generation with support for generics

Is there any tool which provides Java dynamic code generation and that also supports generics? Javassist for example, is the kind of tool that I need, but it does not support generics. I wrote a small lib which uses the Java 6 Compiler API, however as far as I know it depends on JDK. Is there a way to specify another compiler? Or to sh...