Saturday, February 13, 2010

jni4net version 0.7 released

support for delegates and events

.NET events and delegates are supported by proxygen and runtime. From Java side they could be invoked with Invoke() method which has proper signature. Delegates could be also implemented on Java side, by usual anonymous class and passed back to CLR. So Java could subscribe to .NET events.
this.button1.addClick(new system.EventHandler(){
        public void Invoke(system.Object sender, system.EventArgs e){
Full code is in winforms sample, which is part of binaries.

Other changes

  • solved problem with spaces in path to dll/jar
  • assembly loading now uses or assembly name (breaking change)
  • static class is no longer found by name, attribute parameter added (breaking change)
Download there

No comments: