I started work netexp. This is the tool that generates Java stubs for all public types in a .NET assembly, so that Java code can be compiled against .NET code (using any standard Java compiler). The VM understands the stubs and replaces any references to them with the actual .NET types.
It's still in its very early stages, but here is an example that already runs: import system.*; import system.reflection.*; class test { public static void main(String[] args) { Type type = Type.GetType("System.Object"); ConstructorInfo ci = type.GetConstructor( BindingFlags.Public | BindingFlags.Instance, null, Type.EmptyTypes, null); Console.WriteLine(ci); } }
I updated the snapshot.
3:11:58 PM Comments
|