# Thursday, 13 September 2007
« IKVM 0.36 rc1 | Main | Two Useful Tools for IKVM.NET »
IKVM 0.36 rc2

Release candidate 2.


  • Fixed annotation handling to use Enum.valueOf() instead of reflection, to prevent IllegalAccessException when accessing non-public enum.
  • Bootstrap packages are no longer sealed.
  • Packages for ikvmc compiled code are no longer sealed automatically (only when they are sealed in the manifest).
  • Implemented support for enabling/disabling assertions in ikvm.exe.
  • Fixed ikvmstub exception when the resulting jar is empty.
  • Added support for creating proxies for non-public interfaces in ikvmc compiled assemblies.
  • Made method annotation resolution lazy, to deal with annotations that annotate themselves.
  • Fixed bug in finalize method handling that could cause compiler error if base class explicitly called finalize method in derived class.
  • Improved JLS binary compatibility support.
  • Fixed implicit conversion from System.Type to java.lang.Class to return null instead of throwing a NullReferenceException for unrepresentable types.

Binaries available here: ikvmbin-

Sources (+ binaries): ikvm-

External sources (haven't changed since rc1): classpath-0.95-stripped.zip, openjdk-b13-stripped.zip

Thursday, 13 September 2007 11:53:26 (W. Europe Daylight Time, UTC+02:00)  #    Comments [1]
Sunday, 16 September 2007 13:11:17 (W. Europe Daylight Time, UTC+02:00)
I am facing some issues in inherting C# class from Java class.
Problem #1
I have tried creating a C# class that inherits a simple Java class that implements Serializable interface. When i cast downcast the java instance to C# instance with statement
Person is Java class,
Employee is C# class that inherits from Person.
I created instance of Person class and assigned it values.

I then tried to cast it to Employee instance with
employee = (Employee) person; C# compiler gives a runtime error saying cannot cast Person to Employee.

I tried using following
employee = person as Employee; This time it does not gave any runtime error but after execution of this statement employee instance was null where was person still had data.

Whats going on here and whats the solution to this?

Problem #2
if i directly create an employee object and then assign it to Person instance it goes fine on .net side. But when this object is sent to Java side, JDK1.6 complains cli.abc.Employee ClassNotFound at runtime. ikvmstub does not seems to resolve the problem. How can it be tacked?
Home page

I apologize for the lameness of this, but the comment spam was driving me nuts. In order to be able to post a comment, you need to answer a simple question. Hopefully this question is easy enough not to annoy serious commenters, but hard enough to keep the spammers away.

Anti-Spam Question: What method on java.lang.System returns an object's original hashcode (i.e. the one that would be returned by java.lang.Object.hashCode() if it wasn't overridden)? (case is significant)

Comment (HTML not allowed)  

Live Comment Preview