<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" version="2.0">
  <channel>
    <title>IKVM.NET Weblog</title>
    <link>http://weblog.ikvm.net/</link>
    <description>The development of a Java VM for .NET</description>
    <copyright>Jeroen Frijters</copyright>
    <lastBuildDate>Fri, 29 Jan 2010 08:35:13 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.5.3337.0</generator>
    <managingEditor>blog@jeroen.nu</managingEditor>
    <webMaster>blog@jeroen.nu</webMaster>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      I've modified ikvmc to use IKVM.Reflection and largely rewritten ikvmstub to directly
      work with the ikvm internals instead of using the java reflection API. Both ikvmc
      and ikvmstub can now process assemblies independent from the .NET runtime they run
      on. This opens up the possibility to start investigating the possibility of Silverlight
      support.
   </p>
        <p>
      Changes:
   </p>
        <ul>
          <li>
         Drag-n-drop fix by Nat.</li>
          <li>
         Fixed regression introduced in previous development snapshot, related to field accessors.</li>
          <li>
         Removed caching of inner classes.</li>
          <li>
         Fix for bug <a href="http://sourceforge.net/tracker/?func=detail&amp;aid=2908683&amp;group_id=69637&amp;atid=525264">#2908683</a>.</li>
          <li>
         Various AWT fixes by Volker.</li>
          <li>
         Changed JNI to use standard caller ID mechanism.</li>
          <li>
         Various JNI optimizations.</li>
          <li>
         Fixed <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696</a></li>
          <li>
         Fixed exception sorter bug exposed by recent Mono sorting change.</li>
          <li>
         Fixed Thread.getAllStackTraces() to resume threads that it suspends.</li>
          <li>
         Integrated new IKVM.Reflection implementation.</li>
          <li>
         Added AllowMultiple = true to RemappedClassAttribute.</li>
          <li>
         Fixed atomic update helper nested types to be invisible from Java.</li>
          <li>
         Removed support for "ikvm.stubgen.serialver" property that is no longer needed now
         that ikvmstub doesn't use the runtime to generate stubs.</li>
          <li>
         Removed pre-generated stub jars from cvs and modified build process to generate them
         during the build.</li>
          <li>
         Removed "constant" instance field support (which was only used by ikvmstub and doesn't
         make any sense anyway).</li>
          <li>
         Removed ReflectionOnly support from runtime. Now that ikvmstub no longer requires
         it, there's no good reason to allow Java code to see ReflectionOnly types.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.43.3681.zip">ikvmbin-0.43.3681.zip</a><br /></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=3f7b31fb-ff92-4604-a302-349a9ccad953" />
      </body>
      <title>New Development Snapshot</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</link>
      <pubDate>Fri, 29 Jan 2010 08:35:13 GMT</pubDate>
      <description>&lt;p&gt;
   I've modified ikvmc to use IKVM.Reflection and largely rewritten ikvmstub to directly
   work with the ikvm internals instead of using the java reflection API. Both ikvmc
   and ikvmstub can now process assemblies independent from the .NET runtime they run
   on. This opens up the possibility to start investigating the possibility of Silverlight
   support.
&lt;/p&gt;
&lt;p&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Drag-n-drop fix by Nat.&lt;/li&gt;
   &lt;li&gt;
      Fixed regression introduced in previous development snapshot, related to field accessors.&lt;/li&gt;
   &lt;li&gt;
      Removed caching of inner classes.&lt;/li&gt;
   &lt;li&gt;
      Fix for bug &lt;a href="http://sourceforge.net/tracker/?func=detail&amp;amp;aid=2908683&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;#2908683&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Various AWT fixes by Volker.&lt;/li&gt;
   &lt;li&gt;
      Changed JNI to use standard caller ID mechanism.&lt;/li&gt;
   &lt;li&gt;
      Various JNI optimizations.&lt;/li&gt;
   &lt;li&gt;
      Fixed &lt;a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696"&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696&lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
      Fixed exception sorter bug exposed by recent Mono sorting change.&lt;/li&gt;
   &lt;li&gt;
      Fixed Thread.getAllStackTraces() to resume threads that it suspends.&lt;/li&gt;
   &lt;li&gt;
      Integrated new IKVM.Reflection implementation.&lt;/li&gt;
   &lt;li&gt;
      Added AllowMultiple = true to RemappedClassAttribute.&lt;/li&gt;
   &lt;li&gt;
      Fixed atomic update helper nested types to be invisible from Java.&lt;/li&gt;
   &lt;li&gt;
      Removed support for "ikvm.stubgen.serialver" property that is no longer needed now
      that ikvmstub doesn't use the runtime to generate stubs.&lt;/li&gt;
   &lt;li&gt;
      Removed pre-generated stub jars from cvs and modified build process to generate them
      during the build.&lt;/li&gt;
   &lt;li&gt;
      Removed "constant" instance field support (which was only used by ikvmstub and doesn't
      make any sense anyway).&lt;/li&gt;
   &lt;li&gt;
      Removed ReflectionOnly support from runtime. Now that ikvmstub no longer requires
      it, there's no good reason to allow Java code to see ReflectionOnly types.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.43.3681.zip"&gt;ikvmbin-0.43.3681.zip&lt;/a&gt;
   &lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=3f7b31fb-ff92-4604-a302-349a9ccad953"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=3f7b31fb-ff92-4604-a302-349a9ccad953</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      In <a href="/PermaLink.aspx?guid=9b7ada92-88d7-45c7-be83-8e6f4f3ccb1b">November 2008</a> I
      introduced IKVM.Reflection.Emit, today I'm introducing IKVM.Reflection. It superseded
      IKVM.Reflection.Emit and also includes the ability to read managed assemblies. In
      addition, I've also added many other features that aren't directly needed for ikvmc,
      but are useful for other applications. Almost the complete reflection API has now
      been implemented and there are several API extensions to support managed PE features
      that reflection doesn't support (well).
   </p>
        <p>
          <b>Why?</b>
        </p>
        <p>
      When I started on IKVM.Reflection.Emit, it wasn't at all clear to me that it would
      be possible to re-implement the System.Reflection.Emit namespace without also re-implementing
      the System.Reflection namespace, but it turned out it was. I did run into a few snags,
      such as the inability to subclass Module and Assembly (this was fixed in .NET 4.0)
      and a couple of Mono bugs, but on the whole IKVM.Reflection.Emit was very successful.
      So why then re-implement the System.Reflection namespace as well? The main reasons
      are Silverlight and .NET 4.0. For ikvmc to be able to target versions of the runtime
      different from the one it is currently running on, it is necessary to avoid using
      System.Reflection, because System.Reflection can only ever work with the mscorlib
      version of the current runtime.
   </p>
        <p>
          <b>ikvmc &amp; ikvmstub</b>
        </p>
        <p>
      In the coming time, I plan on integrating IKVM.Reflection into ikvmc (most of the
      work for this has already been done, if you've been following the ikvm-commit list,
      you may have seen some changes go in and wondered why they are necessary) and ikvmstub
      (I haven't started on this yet). Currently, ikvmstub uses java reflection to expose
      members of the .NET types in an assembly. I chose this because it was the easiest
      way to make sure that what ikvmstub generated matched the ikvm runtime behavior (because
      it simply used the ikvm runtime to do the mapping). There are two downsides to this
      approach. The first is the same as mentioned above with ikvmc, you can only generate
      mscorlib stubs for the runtime you're currently running on. The second is more philosophical,
      it introduces a cycle in the build process. To build the IKVM.OpenJDK.*.dll assemblies,
      you need mscorlib.jar and System.jar, but to generate these stubs you need a compiled
      class library. To solve both these issues, I plan to rewrite ikvmstub to work directly
      on the internal ikvm runtime representations (with conditional compilation, like ikvmc
      does).
   </p>
        <p>
          <b>Features</b>
        </p>
        <p>
      This list is not exhaustive, but here are some interesting features of IKVM.Reflection
      (that are not in System.Reflection):
   </p>
        <ul>
          <li>
         There is no AppDomain global state. Everything is contained in an instance of the <a href="http://ikvm.cvs.sourceforge.net/viewvc/ikvm/ikvm/reflect/Universe.cs?view=markup">IKVM.Reflection.Universe</a> class.</li>
          <li>
         No thread safety. If you want thread safety, you'll have to lock the universe object
         during every operation.</li>
          <li>
         You can choose what version of mscorlib to load in the universe (using Universe.LoadMscorlib())
         and by implementing a Universe.AssemblyResolve handler you can decide the framework
         assembly <a href="http://msdn.microsoft.com/en-us/library/db7849ey(VS.71).aspx">unification
         policy</a>.</li>
          <li>
         Support for querying and emitting .NET 2.0 style declarative security.</li>
          <li>
         Support for defining unmanaged resources from a byte array (in .NET, AssemblyBuilder.DefineUnmanagedResources(byte[])
         is broken, only the overload that accepts a filename works).</li>
          <li>
         The ability to read and emit .NET 1.1, .NET 2.0 and .NET 4.0 assemblies (while running
         on, for example, .NET 2.0).</li>
          <li>
         Full support for vararg calling convention.</li>
          <li>
         Support for reading field RVA data (e.g. for the fields that are used by the C# compiler
         to initialize arrays).</li>
          <li>
         The ability to enable/disable "exception block assistance", or get "clever" assistance.</li>
          <li>
         Support for querying methodimpl mappings.</li>
          <li>
         Support for reference, pointer and array types with custom modifiers (this CLR feature
         is used by C++/CLI).</li>
        </ul>
        <p>
          <b>Missing Features</b>
        </p>
        <p>
      Some things are still missing. The most notable being the Emit differences. The emit
      code was based on the IKVM.Reflection.Emit code and likewise still lacks some of the
      querying support (for baked types), although the new code is much better than the
      code in IKVM.Reflection.Emit.dll in this respect.
   </p>
        <p>
      Here's a list of methods that can still throw a NotImplementedException:
   </p>
        <ul>
          <li>
         FieldBuilder.__GetDataFromRVA()</li>
          <li>
         ModuleBuilder.ResolveType()</li>
          <li>
         ModuleBuilder.ResolveMethod()</li>
          <li>
         ModuleBuilder.ResolveField()</li>
          <li>
         ModuleBuilder.ResolveMember()</li>
          <li>
         ModuleBuilder.ResolveString()</li>
          <li>
         ModuleBuilder.__ResolveOptionalParameterTypes()</li>
          <li>
         ModuleBuilder.GetArrayMethod()</li>
          <li>
         GenericTypeParameterBuilder.BaseType</li>
          <li>
         GenericTypeParameterBuilder.__GetDeclaredInterfaces()</li>
          <li>
         GenericTypeParameterBuilder.GetGenericParameterConstraints()</li>
          <li>
         GenericTypeParameterBuilder.GenericParameterAttributes</li>
          <li>
         TypeBuilder.CreateType() (when invoked a second time)</li>
          <li>
         TypeBuilder.__GetDeclaredFields()</li>
          <li>
         TypeBuilder.__GetDeclaredEvents()</li>
          <li>
         TypeBuilder.__GetDeclaredProperties()</li>
          <li>
         ISymbolDocumentWriter.SetCheckSum()</li>
          <li>
         ISymbolDocumentWriter.SetSource()</li>
          <li>
         Most methods in ISymbolWriter</li>
          <li>
         ManifestResourceInfo.ResourceLocation (for resources located in another assembly)</li>
          <li>
         ManifestResourceInfo.ReferencedAssembly</li>
          <li>
         ManifestResourceInfo.FileName</li>
          <li>
         MethodBase.GetMethodBody() (if the method data contains unexpected sections)</li>
          <li>
         Type.IsAssignableFrom()</li>
        </ul>
        <p>
      Missing members:
   </p>
        <ul>
          <li>
         Module.GetSignerCertificate()</li>
          <li>
         Type.GUID</li>
          <li>
         ParameterBuilder.GetToken()</li>
          <li>
         PropertyBuilder.PropertyToken</li>
          <li>
         MethodBuilder.Signature</li>
          <li>
         ConstructorBuilder.Signature</li>
          <li>
         MethodBuilder.SetSymCustomAttribute()</li>
          <li>
         ModuleBuilder.SetSymCustomAttribute()</li>
          <li>
         ConstructorBuilder.SetSymCustomAttribute()</li>
          <li>
         ModuleBuilder.DefineResource()</li>
          <li>
         AssemblyBuilder.ModuleResolve</li>
          <li>
         Assembly.GetManifestResourceStream()</li>
          <li>
         Assembly.GetSatelliteAssembly()</li>
          <li>
         Assembly.GetFile()</li>
          <li>
         Assembly.GetFiles()</li>
          <li>
         MethodBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)</li>
          <li>
         ParameterBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)</li>
          <li>
         FieldBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)</li>
          <li>
         ModuleBuilder.DefineUnmanagedResource(byte[]) (because it is broken)</li>
          <li>
         AssemblyBuilder.DefineUnmanagedResource(byte[]) (because it is broken)</li>
          <li>
         MethodBuilder.CreateMethodBody()</li>
          <li>
         Everything that doesn't make sense in a ReflectionOnly context.</li>
        </ul>
        <p>
      Concepts that are not implemented:
   </p>
        <ul>
          <li>
         Most metadata tokens returned by Emit objects are not properly typed (and can't be
         used for anything, other than comparing them against other metadata tokens).</li>
          <li>
         When defining debugging symbols, a single method can only point to a single source
         document.</li>
          <li>
         All type/member lookup operations are case sensitive.</li>
          <li>
         Implementing a custom System.Reflection.Binder is not supported.</li>
          <li>
         Modules with unsorted metadata tables are not supported.</li>
          <li>
         When Type.GetMethods() (or __GetDeclaredMethods) is called on Array types it throws
         a NotImplementedException, instead of returning the special array accessor methods.</li>
          <li>
         Managed function pointer types are not supported. Like System.Reflection, they are
         returned as System.IntPtr instead.</li>
        </ul>
        <p>
          <b>Linker Prototype</b>
        </p>
        <p>
      To see if I did miss any important CLR features, I wrote a prototype assembly linker.
      It is pretty capable, but should not be confused for something that is usable for
      anything other than exploring. I've used it with C++/CLI (compiled with /clr:pure)
      to test the more esoteric CLR features. The source for the linker prototype is in
      the zip linked to below.
   </p>
        <p>
      The IKVM.Reflection source code is available in <a href="http://ikvm.cvs.sourceforge.net/viewvc/ikvm/ikvm/reflect/">cvs</a>.
      If you just want the binary, the <a href="http://www.frijters.net/LinkerPrototype.zip">LinkerPrototype.zip</a> contains
      it.
   </p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=d0dc2476-471b-45f3-96bf-a90bc2f5800b" />
      </body>
      <title>Introducing IKVM.Reflection</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</link>
      <pubDate>Mon, 25 Jan 2010 07:28:20 GMT</pubDate>
      <description>&lt;p&gt;
   In &lt;a href="/PermaLink.aspx?guid=9b7ada92-88d7-45c7-be83-8e6f4f3ccb1b"&gt;November 2008&lt;/a&gt; I
   introduced IKVM.Reflection.Emit, today I'm introducing IKVM.Reflection. It superseded
   IKVM.Reflection.Emit and also includes the ability to read managed assemblies. In
   addition, I've also added many other features that aren't directly needed for ikvmc,
   but are useful for other applications. Almost the complete reflection API has now
   been implemented and there are several API extensions to support managed PE features
   that reflection doesn't support (well).
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Why?&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   When I started on IKVM.Reflection.Emit, it wasn't at all clear to me that it would
   be possible to re-implement the System.Reflection.Emit namespace without also re-implementing
   the System.Reflection namespace, but it turned out it was. I did run into a few snags,
   such as the inability to subclass Module and Assembly (this was fixed in .NET 4.0)
   and a couple of Mono bugs, but on the whole IKVM.Reflection.Emit was very successful.
   So why then re-implement the System.Reflection namespace as well? The main reasons
   are Silverlight and .NET 4.0. For ikvmc to be able to target versions of the runtime
   different from the one it is currently running on, it is necessary to avoid using
   System.Reflection, because System.Reflection can only ever work with the mscorlib
   version of the current runtime.
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;ikvmc &amp;amp; ikvmstub&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   In the coming time, I plan on integrating IKVM.Reflection into ikvmc (most of the
   work for this has already been done, if you've been following the ikvm-commit list,
   you may have seen some changes go in and wondered why they are necessary) and ikvmstub
   (I haven't started on this yet). Currently, ikvmstub uses java reflection to expose
   members of the .NET types in an assembly. I chose this because it was the easiest
   way to make sure that what ikvmstub generated matched the ikvm runtime behavior (because
   it simply used the ikvm runtime to do the mapping). There are two downsides to this
   approach. The first is the same as mentioned above with ikvmc, you can only generate
   mscorlib stubs for the runtime you're currently running on. The second is more philosophical,
   it introduces a cycle in the build process. To build the IKVM.OpenJDK.*.dll assemblies,
   you need mscorlib.jar and System.jar, but to generate these stubs you need a compiled
   class library. To solve both these issues, I plan to rewrite ikvmstub to work directly
   on the internal ikvm runtime representations (with conditional compilation, like ikvmc
   does).
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Features&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   This list is not exhaustive, but here are some interesting features of IKVM.Reflection
   (that are not in System.Reflection):
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      There is no AppDomain global state. Everything is contained in an instance of the &lt;a href="http://ikvm.cvs.sourceforge.net/viewvc/ikvm/ikvm/reflect/Universe.cs?view=markup"&gt;IKVM.Reflection.Universe&lt;/a&gt; class.&lt;/li&gt;
   &lt;li&gt;
      No thread safety. If you want thread safety, you'll have to lock the universe object
      during every operation.&lt;/li&gt;
   &lt;li&gt;
      You can choose what version of mscorlib to load in the universe (using Universe.LoadMscorlib())
      and by implementing a Universe.AssemblyResolve handler you can decide the framework
      assembly &lt;a href="http://msdn.microsoft.com/en-us/library/db7849ey(VS.71).aspx"&gt;unification
      policy&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Support for querying and emitting .NET 2.0 style declarative security.&lt;/li&gt;
   &lt;li&gt;
      Support for defining unmanaged resources from a byte array (in .NET, AssemblyBuilder.DefineUnmanagedResources(byte[])
      is broken, only the overload that accepts a filename works).&lt;/li&gt;
   &lt;li&gt;
      The ability to read and emit .NET 1.1, .NET 2.0 and .NET 4.0 assemblies (while running
      on, for example, .NET 2.0).&lt;/li&gt;
   &lt;li&gt;
      Full support for vararg calling convention.&lt;/li&gt;
   &lt;li&gt;
      Support for reading field RVA data (e.g. for the fields that are used by the C# compiler
      to initialize arrays).&lt;/li&gt;
   &lt;li&gt;
      The ability to enable/disable "exception block assistance", or get "clever" assistance.&lt;/li&gt;
   &lt;li&gt;
      Support for querying methodimpl mappings.&lt;/li&gt;
   &lt;li&gt;
      Support for reference, pointer and array types with custom modifiers (this CLR feature
      is used by C++/CLI).&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   &lt;b&gt;Missing Features&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   Some things are still missing. The most notable being the Emit differences. The emit
   code was based on the IKVM.Reflection.Emit code and likewise still lacks some of the
   querying support (for baked types), although the new code is much better than the
   code in IKVM.Reflection.Emit.dll in this respect.
&lt;/p&gt;
&lt;p&gt;
   Here's a list of methods that can still throw a NotImplementedException:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      FieldBuilder.__GetDataFromRVA()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.ResolveType()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.ResolveMethod()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.ResolveField()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.ResolveMember()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.ResolveString()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.__ResolveOptionalParameterTypes()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.GetArrayMethod()&lt;/li&gt;
   &lt;li&gt;
      GenericTypeParameterBuilder.BaseType&lt;/li&gt;
   &lt;li&gt;
      GenericTypeParameterBuilder.__GetDeclaredInterfaces()&lt;/li&gt;
   &lt;li&gt;
      GenericTypeParameterBuilder.GetGenericParameterConstraints()&lt;/li&gt;
   &lt;li&gt;
      GenericTypeParameterBuilder.GenericParameterAttributes&lt;/li&gt;
   &lt;li&gt;
      TypeBuilder.CreateType() (when invoked a second time)&lt;/li&gt;
   &lt;li&gt;
      TypeBuilder.__GetDeclaredFields()&lt;/li&gt;
   &lt;li&gt;
      TypeBuilder.__GetDeclaredEvents()&lt;/li&gt;
   &lt;li&gt;
      TypeBuilder.__GetDeclaredProperties()&lt;/li&gt;
   &lt;li&gt;
      ISymbolDocumentWriter.SetCheckSum()&lt;/li&gt;
   &lt;li&gt;
      ISymbolDocumentWriter.SetSource()&lt;/li&gt;
   &lt;li&gt;
      Most methods in ISymbolWriter&lt;/li&gt;
   &lt;li&gt;
      ManifestResourceInfo.ResourceLocation (for resources located in another assembly)&lt;/li&gt;
   &lt;li&gt;
      ManifestResourceInfo.ReferencedAssembly&lt;/li&gt;
   &lt;li&gt;
      ManifestResourceInfo.FileName&lt;/li&gt;
   &lt;li&gt;
      MethodBase.GetMethodBody() (if the method data contains unexpected sections)&lt;/li&gt;
   &lt;li&gt;
      Type.IsAssignableFrom()&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Missing members:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Module.GetSignerCertificate()&lt;/li&gt;
   &lt;li&gt;
      Type.GUID&lt;/li&gt;
   &lt;li&gt;
      ParameterBuilder.GetToken()&lt;/li&gt;
   &lt;li&gt;
      PropertyBuilder.PropertyToken&lt;/li&gt;
   &lt;li&gt;
      MethodBuilder.Signature&lt;/li&gt;
   &lt;li&gt;
      ConstructorBuilder.Signature&lt;/li&gt;
   &lt;li&gt;
      MethodBuilder.SetSymCustomAttribute()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.SetSymCustomAttribute()&lt;/li&gt;
   &lt;li&gt;
      ConstructorBuilder.SetSymCustomAttribute()&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.DefineResource()&lt;/li&gt;
   &lt;li&gt;
      AssemblyBuilder.ModuleResolve&lt;/li&gt;
   &lt;li&gt;
      Assembly.GetManifestResourceStream()&lt;/li&gt;
   &lt;li&gt;
      Assembly.GetSatelliteAssembly()&lt;/li&gt;
   &lt;li&gt;
      Assembly.GetFile()&lt;/li&gt;
   &lt;li&gt;
      Assembly.GetFiles()&lt;/li&gt;
   &lt;li&gt;
      MethodBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)&lt;/li&gt;
   &lt;li&gt;
      ParameterBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)&lt;/li&gt;
   &lt;li&gt;
      FieldBuilder.SetMarshal() (obsolete, use MarshalAsAttribute instead)&lt;/li&gt;
   &lt;li&gt;
      ModuleBuilder.DefineUnmanagedResource(byte[]) (because it is broken)&lt;/li&gt;
   &lt;li&gt;
      AssemblyBuilder.DefineUnmanagedResource(byte[]) (because it is broken)&lt;/li&gt;
   &lt;li&gt;
      MethodBuilder.CreateMethodBody()&lt;/li&gt;
   &lt;li&gt;
      Everything that doesn't make sense in a ReflectionOnly context.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Concepts that are not implemented:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Most metadata tokens returned by Emit objects are not properly typed (and can't be
      used for anything, other than comparing them against other metadata tokens).&lt;/li&gt;
   &lt;li&gt;
      When defining debugging symbols, a single method can only point to a single source
      document.&lt;/li&gt;
   &lt;li&gt;
      All type/member lookup operations are case sensitive.&lt;/li&gt;
   &lt;li&gt;
      Implementing a custom System.Reflection.Binder is not supported.&lt;/li&gt;
   &lt;li&gt;
      Modules with unsorted metadata tables are not supported.&lt;/li&gt;
   &lt;li&gt;
      When Type.GetMethods() (or __GetDeclaredMethods) is called on Array types it throws
      a NotImplementedException, instead of returning the special array accessor methods.&lt;/li&gt;
   &lt;li&gt;
      Managed function pointer types are not supported. Like System.Reflection, they are
      returned as System.IntPtr instead.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   &lt;b&gt;Linker Prototype&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   To see if I did miss any important CLR features, I wrote a prototype assembly linker.
   It is pretty capable, but should not be confused for something that is usable for
   anything other than exploring. I've used it with C++/CLI (compiled with /clr:pure)
   to test the more esoteric CLR features. The source for the linker prototype is in
   the zip linked to below.
&lt;/p&gt;
&lt;p&gt;
   The IKVM.Reflection source code is available in &lt;a href="http://ikvm.cvs.sourceforge.net/viewvc/ikvm/ikvm/reflect/"&gt;cvs&lt;/a&gt;.
   If you just want the binary, the &lt;a href="http://www.frijters.net/LinkerPrototype.zip"&gt;LinkerPrototype.zip&lt;/a&gt; contains
   it.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=d0dc2476-471b-45f3-96bf-a90bc2f5800b"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=d0dc2476-471b-45f3-96bf-a90bc2f5800b</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Yesterday, I released 0.42 and as seemingly always happens a bug was reported right
      after that. So with that we're now on the road to the 0.42 Update 1 release. This
      is release candidate 0.<br /><br />
      Changes:
   </p>
        <ul>
          <li>
         Updated version to 0.42.0.4.</li>
          <li>
         Added fix to mangle all artificial type names if they clash with Java type names in
         the same assembly.</li>
          <li>
         Fix for <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696</a>.</li>
          <li>
            <a href="https://sourceforge.net/mailarchive/message.php?msg_name=295e750a1001102223x4a3aa94av93e8938086ccb08b@mail.gmail.com">Fixed
         exception sorter</a> to be correct when invoked with two references to the same object.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.42.0.4.zip">ikvmbin-0.42.0.4.zip</a><br /><br />
      Sources: <a href="http://www.frijters.net/ikvm-0.42.0.4.zip">ikvm-0.42.0.4.zip</a>, <a href="http://www.frijters.net/openjdk6-b16-stripped.zip">openjdk6-b16-stripped.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=ccbdcc69-bab1-467e-a694-33cc4eb5169d" />
      </body>
      <title>0.42 Update 1 RC 0</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</link>
      <pubDate>Tue, 12 Jan 2010 17:11:43 GMT</pubDate>
      <description>&lt;p&gt;
   Yesterday, I released 0.42 and as seemingly always happens a bug was reported right
   after that. So with that we're now on the road to the 0.42 Update 1 release. This
   is release candidate 0.&lt;br&gt;
   &lt;br&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Updated version to 0.42.0.4.&lt;/li&gt;
   &lt;li&gt;
      Added fix to mangle all artificial type names if they clash with Java type names in
      the same assembly.&lt;/li&gt;
   &lt;li&gt;
      Fix for &lt;a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696"&gt;http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41696&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      &lt;a href="https://sourceforge.net/mailarchive/message.php?msg_name=295e750a1001102223x4a3aa94av93e8938086ccb08b@mail.gmail.com"&gt;Fixed
      exception sorter&lt;/a&gt; to be correct when invoked with two references to the same object.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.42.0.4.zip"&gt;ikvmbin-0.42.0.4.zip&lt;/a&gt;
   &lt;br&gt;
   &lt;br&gt;
   Sources: &lt;a href="http://www.frijters.net/ikvm-0.42.0.4.zip"&gt;ikvm-0.42.0.4.zip&lt;/a&gt;, &lt;a href="http://www.frijters.net/openjdk6-b16-stripped.zip"&gt;openjdk6-b16-stripped.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=ccbdcc69-bab1-467e-a694-33cc4eb5169d"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=ccbdcc69-bab1-467e-a694-33cc4eb5169d</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">I've <a href="http://sourceforge.net/project/showfiles.php?group_id=69637">released
   IKVM 0.42</a> to SourceForge. The binaries are identical to the ones in <a href="/PermaLink.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7">release
   candidate 3</a>. 
   <p><b>Release Notes</b></p><p>
      This document lists the known issues and incompatibilities.
   </p><p><b>Runtime</b></p><ul><li>
         Code unloading (aka class GC) is not supported. 
      </li><li>
         In Java static initializers can deadlock, on .NET some threads can see uninitialized
         state in cases where deadlock would occur on the JVM. 
      </li><li>
         JNI<br />
           
         <ul><li>
               Only supported in the default AppDomain. 
            </li><li>
               Only the JNICALL calling convention is supported! (On Windows, HotSpot appears to
               also support the cdecl calling convention). 
            </li><li>
               Cannot call string contructors on already existing string instances 
            </li><li>
               A few limitations in Invocation API support<br />
                 
               <ul><li>
                     The Invocation API is only supported when running on .NET. 
                  </li><li>
                     JNI_CreateJavaVM: init options "-verbose[:class|:gc|:jni]", "vfprintf", "exit" and
                     "abort" are not implemented. The JDK 1.1 version of JavaVMInitArgs isn't supported. 
                  </li><li>
                     JNI_GetDefaultJavaVMInitArgs not implemented 
                  </li><li>
                     JNI_GetCreatedJavaVMs only returns the JavaVM if the VM was started through JNI or
                     a JNI call that retrieves the JavaVM has already occurred. 
                  </li><li>
                     DestroyJVM is only partially implemented (it waits until there are no more non-daemon
                     Java threads and then returns JNI_ERR). 
                  </li><li>
                     DetachCurrentThread doesn't release monitors held by the thread.</li></ul></li><li>
               Native libraries are never unloaded (because code unloading is not supported).</li></ul></li><li>
         The JVM allows any reference type to be passed where an interface reference is expected
         (and to store any reference type in an interface reference type field), on IKVM this
         results in an IncompatibleClassChangeError. 
      </li><li>
         monitorenter / monitorexit cannot be used on unitialized this reference. 
      </li><li>
         Floating point is not fully spec compliant. 
      </li><li>
         A method returning a boolean that returns an integer other than 0 or 1 behaves differently
         (this also applies to byte/char/short and for method parameters). 
      </li><li>
         Synchronized blocks are not async exception safe. 
      </li><li>
         Ghost arrays don't throw ArrayStoreException when you store an object that doesn't
         implement the ghost interface. 
      </li><li>
         Class loading is more eager than on the reference VM. 
      </li><li>
         Interface implementation methods are never really final (interface can be reimplemented
         by .NET subclasses). 
      </li><li>
         JSR-133 finalization spec change is not fully implemented. The JSR-133 changes dictate
         that an object should not be finalized unless the Object constructor has run successfully,
         but this isn't implemented.</li></ul><p><b>Static Compiler (ikvmc)</b></p><ul><li>
         Some subtle differences with ikvmc compiled code for public members inherited from
         non-public base classes (so called "access stubs"). Because the access stub lives
         in a derived class, when accessing a member in a base class, the derived cctor will
         be run whereas java (and ikvm) only runs the base cctor. 
      </li><li>
         Try blocks around base class ctor invocation result in unverifiable code (no known
         compilers produce this type of code). 
      </li><li>
         Try/catch blocks before base class ctor invocation result in unverifiable code (this
         actually happens with the Eclipse compiler when you pass a class literal to the base
         class ctor and compile with -target 1.4). 
      </li><li>
         Only code compiled in a single assembly fully obeys the JLS binary compatibility rules. 
      </li><li>
         An assembly can only contain one resource with a particular name. 
      </li><li>
         Passing incorrect command line options to ikvmc may result in an exception rather
         than a proper error messages.</li></ul><p><b>Class Library</b></p><p>
      Most class library code is based on OpenJDK 6 build 16. Below is a list of divergences
      and IKVM specific implementation notes.
   </p><table cellspacing="0"><tbody><tr><td style="BORDER-TOP: black 1px solid">
               com.sun.security.auth.module        
            </td><td style="BORDER-TOP: black 1px solid">
               Not implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               java.applet</td><td>
               GNU Classpath implementation. Not implemented.</td></tr><tr><td>
               java.awt</td><td>
               Partial System.Windows.Forms based back-end. Not supported.</td></tr><tr bgcolor="#f0f0f0"><td>
               java.io.Console</td><td>
               Not implemented.</td></tr><tr><td>
               java.lang.instrument</td><td>
               Not implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               java.lang.management</td><td>
               Not implemented.</td></tr><tr><td>
               java.net</td><td>
               No IPv6 support implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               java.net.ProxySelector</td><td>
               Getting the default system proxy for a URL is not implemented.</td></tr><tr><td>
               java.text.Bidi</td><td>
               GNU Classpath implementation. Not supported.</td></tr><tr bgcolor="#f0f0f0"><td>
               java.util.zip</td><td>
               Partially based on GNU Classpath implementation.</td></tr><tr><td>
               javax.imageio.plugins.jpeg</td><td>
               Partial implementation. JPEGs can be read and written, but there is no metadata support.</td></tr><tr bgcolor="#f0f0f0"><td>
               javax.management</td><td>
               Not implemented.</td></tr><tr><td>
               javax.print</td><td>
               Not implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               javax.script</td><td>
               Not implemented.</td></tr><tr><td>
               javax.smartcardio</td><td>
               Not implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               javax.sound</td><td>
               Not implemented.</td></tr><tr><td>
               javax.swing</td><td>
               Not supported.</td></tr><tr bgcolor="#f0f0f0"><td>
               javax.tools</td><td>
               Not implemented.</td></tr><tr><td>
               org.ietfs.jgss</td><td>
               Not implemented.</td></tr><tr bgcolor="#f0f0f0"><td>
               sun.jdbc.odbc</td><td>
               Implementation based on .NET ODBC managed provider.</td></tr><tr><td>
               sun.net.www.content.audio</td><td>
               Audio content handlers not implemented.</td></tr><tr bgcolor="#f0f0f0"><td style="BORDER-BOTTOM: black 1px solid">
               sun.net.www.content.image</td><td style="BORDER-BOTTOM: black 1px solid">
               Image content handlers not implemented.</td></tr></tbody></table><p>
      The entire public API is available, so "Not implemented." for javax.print, for example,
      means that the API is there but there is no back-end to provide the actual printing
      support. "Not supported." means that the code is there and probably works at least
      somewhat, but that I'm less likely to fix bugs reported in these areas.
   </p><p>
      Specific API notes:
   </p><ul><li>
         java.lang.Thread.stop(Throwable t) doesn't support throwing arbitrary exceptions on
         other threads (only java.lang.ThreadDeath). 
      </li><li>
         java.lang.Thread.holdsLock(Object o) causes a spurious notify on the object (this
         is allowed by the J2SE 5.0 spec). 
      </li><li>
         java.lang.String.intern() strings are never garbage collected. 
      </li><li>
         Weak/soft references and reference queues are inefficient and do not fully implement
         the required semantics. 
      </li><li>
         java.lang.ref.SoftReference: Soft references are not guaranteed to be cleared before
         an OutOfMemoryError is thrown. 
      </li><li>
         Threads started outside of Java aren't "visible" (e.g. in ThreadGroup.enumerate())
         until they first call Thread.currentThread(). 
      </li><li>
         java.lang.Thread.getState() returns WAITING or TIMED_WAITING instead of BLOCKING when
         we're inside Object.wait() and blocking to re-acquire the monitor. 
      </li><li>
         java.nio.channel.FileChannel.lock() shared locks are only supported on Windows NT
         derived operating systems. 
      </li><li>
         java.lang.SecurityManager: Deprecated methods not implemented: classDepth(String),
         inClass(String), classLoaderDepth(), currentLoadedClass(), currentClassLoader(), inClassLoader()</li></ul><p><b>Supported Platforms</b></p><p>
      This release has been tested on the following CLI implementations / platforms:
   </p><table border="0"><tbody><tr><td><b>CLI Implementation       </b></td><td><b>Architecture      </b></td><td><b>Operating System</b></td></tr><tr><td>
               .NET 2.0 SP2</td><td>
               x86</td><td>
               Windows</td></tr><tr><td>
               .NET 2.0 SP2</td><td>
               x64</td><td>
               Windows</td></tr></tbody></table><p><br /><b>Partial Trust</b></p><p>
      There is experimental support for running in partial trust.
   </p><img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3" /></body>
      <title>IKVM 0.42 Released</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</link>
      <pubDate>Mon, 11 Jan 2010 05:36:26 GMT</pubDate>
      <description>I've &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=69637"&gt;released
IKVM 0.42&lt;/a&gt; to SourceForge. The binaries are identical to the ones in &lt;a href="/PermaLink.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7"&gt;release
candidate 3&lt;/a&gt;. 
&lt;p&gt;
   &lt;b&gt;Release Notes&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   This document lists the known issues and incompatibilities.
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Runtime&lt;/b&gt;
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Code unloading (aka class GC) is not supported. 
   &lt;/li&gt;
   &lt;li&gt;
      In Java static initializers can deadlock, on .NET some threads can see uninitialized
      state in cases where deadlock would occur on the JVM. 
   &lt;/li&gt;
   &lt;li&gt;
      JNI&lt;br&gt;
      &amp;nbsp; 
      &lt;ul&gt;
         &lt;li&gt;
            Only supported in the default AppDomain. 
         &lt;/li&gt;
         &lt;li&gt;
            Only the JNICALL calling convention is supported! (On Windows, HotSpot appears to
            also support the cdecl calling convention). 
         &lt;/li&gt;
         &lt;li&gt;
            Cannot call string contructors on already existing string instances 
         &lt;/li&gt;
         &lt;li&gt;
            A few limitations in Invocation API support&lt;br&gt;
            &amp;nbsp; 
            &lt;ul&gt;
               &lt;li&gt;
                  The Invocation API is only supported when running on .NET. 
               &lt;/li&gt;
               &lt;li&gt;
                  JNI_CreateJavaVM: init options "-verbose[:class|:gc|:jni]", "vfprintf", "exit" and
                  "abort" are not implemented. The JDK 1.1 version of JavaVMInitArgs isn't supported. 
               &lt;/li&gt;
               &lt;li&gt;
                  JNI_GetDefaultJavaVMInitArgs not implemented 
               &lt;/li&gt;
               &lt;li&gt;
                  JNI_GetCreatedJavaVMs only returns the JavaVM if the VM was started through JNI or
                  a JNI call that retrieves the JavaVM has already occurred. 
               &lt;/li&gt;
               &lt;li&gt;
                  DestroyJVM is only partially implemented (it waits until there are no more non-daemon
                  Java threads and then returns JNI_ERR). 
               &lt;/li&gt;
               &lt;li&gt;
                  DetachCurrentThread doesn't release monitors held by the thread.&lt;/li&gt;
            &lt;/ul&gt;
         &lt;/li&gt;
         &lt;li&gt;
            Native libraries are never unloaded (because code unloading is not supported).&lt;/li&gt;
      &lt;/ul&gt;
   &lt;/li&gt;
   &lt;li&gt;
      The JVM allows any reference type to be passed where an interface reference is expected
      (and to store any reference type in an interface reference type field), on IKVM this
      results in an IncompatibleClassChangeError. 
   &lt;/li&gt;
   &lt;li&gt;
      monitorenter / monitorexit cannot be used on unitialized this reference. 
   &lt;/li&gt;
   &lt;li&gt;
      Floating point is not fully spec compliant. 
   &lt;/li&gt;
   &lt;li&gt;
      A method returning a boolean that returns an integer other than 0 or 1 behaves differently
      (this also applies to byte/char/short and for method parameters). 
   &lt;/li&gt;
   &lt;li&gt;
      Synchronized blocks are not async exception safe. 
   &lt;/li&gt;
   &lt;li&gt;
      Ghost arrays don't throw ArrayStoreException when you store an object that doesn't
      implement the ghost interface. 
   &lt;/li&gt;
   &lt;li&gt;
      Class loading is more eager than on the reference VM. 
   &lt;/li&gt;
   &lt;li&gt;
      Interface implementation methods are never really final (interface can be reimplemented
      by .NET subclasses). 
   &lt;/li&gt;
   &lt;li&gt;
      JSR-133 finalization spec change is not fully implemented. The JSR-133 changes dictate
      that an object should not be finalized unless the Object constructor has run successfully,
      but this isn't implemented.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   &lt;b&gt;Static Compiler (ikvmc)&lt;/b&gt;
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Some subtle differences with ikvmc compiled code for public members inherited from
      non-public base classes (so called "access stubs"). Because the access stub lives
      in a derived class, when accessing a member in a base class, the derived cctor will
      be run whereas java (and ikvm) only runs the base cctor. 
   &lt;/li&gt;
   &lt;li&gt;
      Try blocks around base class ctor invocation result in unverifiable code (no known
      compilers produce this type of code). 
   &lt;/li&gt;
   &lt;li&gt;
      Try/catch blocks before base class ctor invocation result in unverifiable code (this
      actually happens with the Eclipse compiler when you pass a class literal to the base
      class ctor and compile with -target 1.4). 
   &lt;/li&gt;
   &lt;li&gt;
      Only code compiled in a single assembly fully obeys the JLS binary compatibility rules. 
   &lt;/li&gt;
   &lt;li&gt;
      An assembly can only contain one resource with a particular name. 
   &lt;/li&gt;
   &lt;li&gt;
      Passing incorrect command line options to ikvmc may result in an exception rather
      than a proper error messages.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   &lt;b&gt;Class Library&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   Most class library code is based on OpenJDK 6 build 16. Below is a list of divergences
   and IKVM specific implementation notes.
&lt;/p&gt;
&lt;table cellspacing=0&gt;
   &lt;tbody&gt;
      &lt;tr&gt;
         &lt;td style="BORDER-TOP: black 1px solid"&gt;
            com.sun.security.auth.module&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
         &lt;/td&gt;
         &lt;td style="BORDER-TOP: black 1px solid"&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            java.applet&lt;/td&gt;
         &lt;td&gt;
            GNU Classpath implementation. Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            java.awt&lt;/td&gt;
         &lt;td&gt;
            Partial System.Windows.Forms based back-end. Not supported.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            java.io.Console&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            java.lang.instrument&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            java.lang.management&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            java.net&lt;/td&gt;
         &lt;td&gt;
            No IPv6 support implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            java.net.ProxySelector&lt;/td&gt;
         &lt;td&gt;
            Getting the default system proxy for a URL is not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            java.text.Bidi&lt;/td&gt;
         &lt;td&gt;
            GNU Classpath implementation. Not supported.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            java.util.zip&lt;/td&gt;
         &lt;td&gt;
            Partially based on GNU Classpath implementation.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            javax.imageio.plugins.jpeg&lt;/td&gt;
         &lt;td&gt;
            Partial implementation. JPEGs can be read and written, but there is no metadata support.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            javax.management&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            javax.print&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            javax.script&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            javax.smartcardio&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            javax.sound&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            javax.swing&lt;/td&gt;
         &lt;td&gt;
            Not supported.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            javax.tools&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            org.ietfs.jgss&lt;/td&gt;
         &lt;td&gt;
            Not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td&gt;
            sun.jdbc.odbc&lt;/td&gt;
         &lt;td&gt;
            Implementation based on .NET ODBC managed provider.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            sun.net.www.content.audio&lt;/td&gt;
         &lt;td&gt;
            Audio content handlers not implemented.&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr bgcolor=#f0f0f0&gt;
         &lt;td style="BORDER-BOTTOM: black 1px solid"&gt;
            sun.net.www.content.image&lt;/td&gt;
         &lt;td style="BORDER-BOTTOM: black 1px solid"&gt;
            Image content handlers not implemented.&lt;/td&gt;
      &lt;/tr&gt;
   &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
   The entire public API is available, so "Not implemented." for javax.print, for example,
   means that the API is there but there is no back-end to provide the actual printing
   support. "Not supported." means that the code is there and probably works at least
   somewhat, but that I'm less likely to fix bugs reported in these areas.
&lt;/p&gt;
&lt;p&gt;
   Specific API notes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      java.lang.Thread.stop(Throwable t) doesn't support throwing arbitrary exceptions on
      other threads (only java.lang.ThreadDeath). 
   &lt;/li&gt;
   &lt;li&gt;
      java.lang.Thread.holdsLock(Object o) causes a spurious notify on the object (this
      is allowed by the J2SE 5.0 spec). 
   &lt;/li&gt;
   &lt;li&gt;
      java.lang.String.intern() strings are never garbage collected. 
   &lt;/li&gt;
   &lt;li&gt;
      Weak/soft references and reference queues are inefficient and do not fully implement
      the required semantics. 
   &lt;/li&gt;
   &lt;li&gt;
      java.lang.ref.SoftReference: Soft references are not guaranteed to be cleared before
      an OutOfMemoryError is thrown. 
   &lt;/li&gt;
   &lt;li&gt;
      Threads started outside of Java aren't "visible" (e.g. in ThreadGroup.enumerate())
      until they first call Thread.currentThread(). 
   &lt;/li&gt;
   &lt;li&gt;
      java.lang.Thread.getState() returns WAITING or TIMED_WAITING instead of BLOCKING when
      we're inside Object.wait() and blocking to re-acquire the monitor. 
   &lt;/li&gt;
   &lt;li&gt;
      java.nio.channel.FileChannel.lock() shared locks are only supported on Windows NT
      derived operating systems. 
   &lt;/li&gt;
   &lt;li&gt;
      java.lang.SecurityManager: Deprecated methods not implemented: classDepth(String),
      inClass(String), classLoaderDepth(), currentLoadedClass(), currentClassLoader(), inClassLoader()&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   &lt;b&gt;Supported Platforms&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   This release has been tested on the following CLI implementations / platforms:
&lt;/p&gt;
&lt;table border=0&gt;
   &lt;tbody&gt;
      &lt;tr&gt;
         &lt;td&gt;
            &lt;b&gt;CLI Implementation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/td&gt;
         &lt;td&gt;
            &lt;b&gt;Architecture&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/b&gt;&lt;/td&gt;
         &lt;td&gt;
            &lt;b&gt;Operating System&lt;/b&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            .NET 2.0 SP2&lt;/td&gt;
         &lt;td&gt;
            x86&lt;/td&gt;
         &lt;td&gt;
            Windows&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
         &lt;td&gt;
            .NET 2.0 SP2&lt;/td&gt;
         &lt;td&gt;
            x64&lt;/td&gt;
         &lt;td&gt;
            Windows&lt;/td&gt;
      &lt;/tr&gt;
   &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
   &lt;br&gt;
   &lt;b&gt;Partial Trust&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   There is experimental support for running in partial trust.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=75a5b8a3-7605-4f6f-a466-8d6c4632f7e3</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      The 0.42 release still isn't done, but in the mean time, development of 0.43 continues.<br /><br />
      Changes:
   </p>
        <ul>
          <li>
         Fixed interface method resolution (via JNI) and various other minor JNI method resolution
         compatibility tweaks.</li>
          <li>
         When there is no Java code on the stack JNIEnv-&gt;FindClass() should use the system
         class loader instead of the boot class loader.</li>
          <li>
         Removed micro optimization that requires full trust on .NET 4.0.</li>
          <li>
         Removed .NET 4.0 workaround.</li>
          <li>
         Renamed ILGenerator.__GetILOffset() to ILGenerator.ILOffset to match with .NET 4.0.</li>
          <li>
         More AWT fixes by Volker</li>
          <li>
         Added support for adding "new-style" declarative security (i.e. .NET 2.0 compatible)
         to IKVM.Reflection.Emit.</li>
          <li>
         Various minor optimizations</li>
          <li>
         Added a couple of missing classes (that tools.jar depends on).</li>
          <li>
         Removed classes that aren't supposed to be in the boot class path (they're from tools.jar).
         This includes the entire IKVM.OpenJDK.XML.RelaxNG assembly.</li>
          <li>
         Created IKVM.OpenJDK.Tools.dll (which is going to be the equivalent of tools.jar).</li>
          <li>
         Fixed IsPackageAccessibleFrom to consider class loaders, instead of InternalsVisibleToAttribute</li>
          <li>
         Added automatic access to internal accessibility members across assemblies in multi
         target compilation (previously this was only done for -sharedclassloader scenarios)</li>
          <li>
         Cleaned up existing field access stubs (now known as "type 1") and added type 2 access
         stubs to make public fields that have a non-public field type accessible.</li>
          <li>
         Moved FindMainMethod from ikvm.exe into runtime, to avoid the need for hacks (to avoid
         NoClassDefFoundErrors).</li>
          <li>
         Deleting of an non existing Preferences Key should not throw an exception.</li>
          <li>
         Type export map performance bug fix by Eyal Alaluf. AssemblyName doesn't implement
         Equals/GetHashCode and this caused the map to contain an assembly entry for every
         type.</li>
          <li>
         Added IKVM_EXPERIMENTAL_JDK_7 environment variable to enable loading Java 7 class
         files. Note that no JDK 7 functionality has been implemented yet.</li>
          <li>
         Mangle all artificial type names if they clash with Java type names in the same assembly.</li>
          <li>
         Added two constructors to ThowsAttribute that take a Type and a Type[] for greater
         convenience when applying the attribute to user code and for compatibility with Grasshopper's
         ThrowsAttribute.</li>
          <li>
         Various minor reflection optimizations.</li>
          <li>
         Don't automatically hide Java "op_Implicit" methods (marked with SpecialName). Instead
         mark the ones we automatically generate with HideFromJavaAttribute.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.43.3628.zip">ikvmbin-0.43.3628.zip</a><br /></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=7036bafb-e65f-45f3-a333-5d0307d154f6" />
      </body>
      <title>New Development Snapshot</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</link>
      <pubDate>Mon, 07 Dec 2009 08:06:05 GMT</pubDate>
      <description>&lt;p&gt;
   The 0.42 release still isn't done, but in the mean time, development of 0.43 continues.&lt;br&gt;
   &lt;br&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Fixed interface method resolution (via JNI) and various other minor JNI method resolution
      compatibility tweaks.&lt;/li&gt;
   &lt;li&gt;
      When there is no Java code on the stack JNIEnv-&amp;gt;FindClass() should use the system
      class loader instead of the boot class loader.&lt;/li&gt;
   &lt;li&gt;
      Removed micro optimization that requires full trust on .NET 4.0.&lt;/li&gt;
   &lt;li&gt;
      Removed .NET 4.0 workaround.&lt;/li&gt;
   &lt;li&gt;
      Renamed ILGenerator.__GetILOffset() to ILGenerator.ILOffset to match with .NET 4.0.&lt;/li&gt;
   &lt;li&gt;
      More AWT fixes by Volker&lt;/li&gt;
   &lt;li&gt;
      Added support for adding "new-style" declarative security (i.e. .NET 2.0 compatible)
      to IKVM.Reflection.Emit.&lt;/li&gt;
   &lt;li&gt;
      Various minor optimizations&lt;/li&gt;
   &lt;li&gt;
      Added a couple of missing classes (that tools.jar depends on).&lt;/li&gt;
   &lt;li&gt;
      Removed classes that aren't supposed to be in the boot class path (they're from tools.jar).
      This includes the entire IKVM.OpenJDK.XML.RelaxNG assembly.&lt;/li&gt;
   &lt;li&gt;
      Created IKVM.OpenJDK.Tools.dll (which is going to be the equivalent of tools.jar).&lt;/li&gt;
   &lt;li&gt;
      Fixed IsPackageAccessibleFrom to consider class loaders, instead of InternalsVisibleToAttribute&lt;/li&gt;
   &lt;li&gt;
      Added automatic access to internal accessibility members across assemblies in multi
      target compilation (previously this was only done for -sharedclassloader scenarios)&lt;/li&gt;
   &lt;li&gt;
      Cleaned up existing field access stubs (now known as "type 1") and added type 2 access
      stubs to make public fields that have a non-public field type accessible.&lt;/li&gt;
   &lt;li&gt;
      Moved FindMainMethod from ikvm.exe into runtime, to avoid the need for hacks (to avoid
      NoClassDefFoundErrors).&lt;/li&gt;
   &lt;li&gt;
      Deleting of an non existing Preferences Key should not throw an exception.&lt;/li&gt;
   &lt;li&gt;
      Type export map performance bug fix by Eyal Alaluf. AssemblyName doesn't implement
      Equals/GetHashCode and this caused the map to contain an assembly entry for every
      type.&lt;/li&gt;
   &lt;li&gt;
      Added IKVM_EXPERIMENTAL_JDK_7 environment variable to enable loading Java 7 class
      files. Note that no JDK 7 functionality has been implemented yet.&lt;/li&gt;
   &lt;li&gt;
      Mangle all artificial type names if they clash with Java type names in the same assembly.&lt;/li&gt;
   &lt;li&gt;
      Added two constructors to ThowsAttribute that take a Type and a Type[] for greater
      convenience when applying the attribute to user code and for compatibility with Grasshopper's
      ThrowsAttribute.&lt;/li&gt;
   &lt;li&gt;
      Various minor reflection optimizations.&lt;/li&gt;
   &lt;li&gt;
      Don't automatically hide Java "op_Implicit" methods (marked with SpecialName). Instead
      mark the ones we automatically generate with HideFromJavaAttribute.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.43.3628.zip"&gt;ikvmbin-0.43.3628.zip&lt;/a&gt;
   &lt;br&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=7036bafb-e65f-45f3-a333-5d0307d154f6"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=7036bafb-e65f-45f3-a333-5d0307d154f6</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      A new release candidate is available.<br /><br />
      Changes since previous release candidate:
   </p>
        <ul>
          <li>
         Changed version to 0.42.0.3.</li>
          <li>
         Fix for bug <a href="http://sourceforge.net/tracker/?func=detail&amp;aid=2887316&amp;group_id=69637&amp;atid=525264">#2887316</a>.</li>
          <li>
         Eyal Alaluf fixed a massive performance bug that caused IKVM.OpenJDK.Core.dll to be
         1.4 MB too big and allocate a couple of MB of unnecessary strings on initialization.</li>
          <li>
         Fixed JNI to use system class loader instead of bootstrap class loader when no Java
         code is on the stack.</li>
          <li>
         Fixed JNI method lookup algorithm.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.42.0.3.zip">ikvmbin-0.42.0.3.zip</a><br /><br />
      Sources: <a href="http://www.frijters.net/ikvm-0.42.0.3.zip">ikvm-0.42.0.3.zip</a>, <a href="http://www.frijters.net/openjdk6-b16-stripped.zip">openjdk6-b16-stripped.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=8ca44111-f200-4e14-8075-4aaedb8969f7" />
      </body>
      <title>IKVM 0.42 Release Candidate 3</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</link>
      <pubDate>Mon, 30 Nov 2009 06:00:02 GMT</pubDate>
      <description>&lt;p&gt;
   A new release candidate is available.&lt;br&gt;
   &lt;br&gt;
   Changes since previous release candidate:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Changed version to 0.42.0.3.&lt;/li&gt;
   &lt;li&gt;
      Fix for bug &lt;a href="http://sourceforge.net/tracker/?func=detail&amp;amp;aid=2887316&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;#2887316&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Eyal Alaluf fixed a massive performance bug that caused IKVM.OpenJDK.Core.dll to be
      1.4 MB too big and allocate a couple of MB of unnecessary strings on initialization.&lt;/li&gt;
   &lt;li&gt;
      Fixed JNI to use system class loader instead of bootstrap class loader when no Java
      code is on the stack.&lt;/li&gt;
   &lt;li&gt;
      Fixed JNI method lookup algorithm.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.42.0.3.zip"&gt;ikvmbin-0.42.0.3.zip&lt;/a&gt;
   &lt;br&gt;
   &lt;br&gt;
   Sources: &lt;a href="http://www.frijters.net/ikvm-0.42.0.3.zip"&gt;ikvm-0.42.0.3.zip&lt;/a&gt;, &lt;a href="http://www.frijters.net/openjdk6-b16-stripped.zip"&gt;openjdk6-b16-stripped.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=8ca44111-f200-4e14-8075-4aaedb8969f7"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=8ca44111-f200-4e14-8075-4aaedb8969f7</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</wfw:commentRss>
      <slash:comments>16</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      In the weeks before PDC I've been working on compiling Eclipse with ikvmc. This works
      was triggered by Mainsoft's Eyal Alaluf who asked me to work on this and also provided
      a desperately needed starting point. I had wanted to do this for ages, but didn't
      feel like struggling with the Eclipse build system to figure out how to get started.
   </p>
        <p>
      A couple of the changes in the most <a href="/PermaLink.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa">recent
      development snapshot</a> are specifically related to this. In particular the ability
      for custom assembly class loaders to be called when the module initializer is run.
      This enables the statically compiled Eclipse OSGi bundles to be lazily activated on
      first use.
   </p>
        <p>
          <b>Instructions</b>
        </p>
        <p>
      Here are the steps needed to compile Eclipse 3.4.2 x86 on Windows:
   </p>
        <ol>
          <li>
         Download <a href="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-win32.zip">eclipse-SDK-3.4.2-win32.zip</a></li>
          <li>
         Download <a href="http://www.frijters.net/ikvmbin-0.43.3595.zip">ikvmbin-0.43.3595.zip</a></li>
          <li>
         Download <a href="http://www.frijters.net/ikvm-eclipse-0.1.zip">ikvm-eclipse-0.1.zip</a></li>
          <li>
         Unzip eclipse-SDK-3.4.2-win32.zip 
      </li>
          <li>
         Open a Command Prompt in the just unzipped eclipse directory 
      </li>
          <li>
         Unzip ikvmbin-0.43.3595.zip in that directory 
      </li>
          <li>
         Unzip ikvm-eclipse-0.1.zip in that directory 
      </li>
          <li>
         Create a directory for the compiled plugins:<br /><code>md plugins-compiled</code></li>
          <li>
         Run ikvmc to compile the eclipse plugins:<br /><code>ikvm\bin\ikvmc @response0.txt</code><br /><code>ikvm\bin\ikvmc @response1.txt</code><br />
         (Ignore the warnings and note that this takes a while and requires a lot of memory.
         I haven't tested this on a 32 bit machine, it may well run out of address space there.) 
      </li>
          <li>
         You can now run "eclipse-clr.exe" to start Eclipse. Note that if you compare startup
         times, the first time that Eclipse starts it does some initial configuration, so don't
         compare the first startup with the subsequent ones. 
      </li>
          <li>
         Optionally you can run ngen-all.bat to compile all assemblies to native code. Make
         sure that you have the x86 version of ngen.exe in your path. Note that this also takes
         a while.</li>
        </ol>
        <p>
          <b>Source Code</b>
        </p>
        <p>
      The sources for eclipse-clr.exe are in <a href="http://www.frijters.net/eclipse-clr-0.1.zip">this
      Visual Studio 2008 solution</a>. It's pretty small and most of what it does is configure
      and hook OSGi to change the bundle loading and initialization. If you want to build
      eclipse-clr.exe, you first have to run ikvmc on response0.txt, then build eclipse-clr.exe
      (it depends on the OSGi assembly built with response0.txt) and after that you can
      run ikvmc on response1.txt (it depends on eclipse-clr.exe, because that contains the
      custom assembly class loader used for the bundles).
   </p>
        <p>
      The response0.txt and response1.txt files were generated from the OSGi manifests and
      if there is interest I can publish the source to that as well, but is pretty hacky.
   </p>
        <p>
          <b>Performance</b>
        </p>
        <p>
      When compiled to native with ngen, Eclipse starts up faster than with JDK 1.6 on my
      systems. In theory the private working set should also be significantly less, allowing
      multiple Eclipse instances to use far less memory.
   </p>
        <p>
          <b>Disclaimer</b>
        </p>
        <p>
      This is just a technology demonstration, not production code and has not been extensively
      tested.
   </p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=1aecaf4e-24c0-4f96-861b-f3b4473c7525" />
      </body>
      <title>Running Eclipse with NGEN</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</link>
      <pubDate>Wed, 25 Nov 2009 05:32:30 GMT</pubDate>
      <description>&lt;p&gt;
   In the weeks before PDC I've been working on compiling Eclipse with ikvmc. This works
   was triggered by Mainsoft's Eyal Alaluf who asked me to work on this and also provided
   a desperately needed starting point. I had wanted to do this for ages, but didn't
   feel like struggling with the Eclipse build system to figure out how to get started.
&lt;/p&gt;
&lt;p&gt;
   A couple of the changes in the most &lt;a href="/PermaLink.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa"&gt;recent
   development snapshot&lt;/a&gt; are specifically related to this. In particular the ability
   for custom assembly class loaders to be called when the module initializer is run.
   This enables the statically compiled Eclipse OSGi bundles to be lazily activated on
   first use.
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Instructions&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   Here are the steps needed to compile Eclipse 3.4.2 x86 on Windows:
&lt;/p&gt;
&lt;ol&gt;
   &lt;li&gt;
      Download &lt;a href="http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops/R-3.4.2-200902111700/eclipse-SDK-3.4.2-win32.zip"&gt;eclipse-SDK-3.4.2-win32.zip&lt;/a&gt; 
   &lt;li&gt;
      Download &lt;a href="http://www.frijters.net/ikvmbin-0.43.3595.zip"&gt;ikvmbin-0.43.3595.zip&lt;/a&gt; 
   &lt;li&gt;
      Download &lt;a href="http://www.frijters.net/ikvm-eclipse-0.1.zip"&gt;ikvm-eclipse-0.1.zip&lt;/a&gt; 
   &lt;li&gt;
      Unzip eclipse-SDK-3.4.2-win32.zip 
   &lt;li&gt;
      Open a Command Prompt in the just unzipped eclipse directory 
   &lt;li&gt;
      Unzip ikvmbin-0.43.3595.zip in that directory 
   &lt;li&gt;
      Unzip ikvm-eclipse-0.1.zip in that directory 
   &lt;li&gt;
      Create a directory for the compiled plugins:&lt;br&gt;
      &lt;code&gt;md plugins-compiled&lt;/code&gt; 
   &lt;li&gt;
      Run ikvmc to compile the eclipse plugins:&lt;br&gt;
      &lt;code&gt;ikvm\bin\ikvmc @response0.txt&lt;/code&gt;
      &lt;br&gt;
      &lt;code&gt;ikvm\bin\ikvmc @response1.txt&lt;/code&gt;
      &lt;br&gt;
      (Ignore the warnings and note that this takes a while and requires a lot of memory.
      I haven't tested this on a 32 bit machine, it may well run out of address space there.) 
   &lt;li&gt;
      You can now run "eclipse-clr.exe" to start Eclipse. Note that if you compare startup
      times, the first time that Eclipse starts it does some initial configuration, so don't
      compare the first startup with the subsequent ones. 
   &lt;li&gt;
      Optionally you can run ngen-all.bat to compile all assemblies to native code. Make
      sure that you have the x86 version of ngen.exe in your path. Note that this also takes
      a while.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
   &lt;b&gt;Source Code&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   The sources for eclipse-clr.exe are in &lt;a href="http://www.frijters.net/eclipse-clr-0.1.zip"&gt;this
   Visual Studio 2008 solution&lt;/a&gt;. It's pretty small and most of what it does is configure
   and hook OSGi to change the bundle loading and initialization. If you want to build
   eclipse-clr.exe, you first have to run ikvmc on response0.txt, then build eclipse-clr.exe
   (it depends on the OSGi assembly built with response0.txt) and after that you can
   run ikvmc on response1.txt (it depends on eclipse-clr.exe, because that contains the
   custom assembly class loader used for the bundles).
&lt;/p&gt;
&lt;p&gt;
   The response0.txt and response1.txt files were generated from the OSGi manifests and
   if there is interest I can publish the source to that as well, but is pretty hacky.
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Performance&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   When compiled to native with ngen, Eclipse starts up faster than with JDK 1.6 on my
   systems. In theory the private working set should also be significantly less, allowing
   multiple Eclipse instances to use far less memory.
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Disclaimer&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   This is just a technology demonstration, not production code and has not been extensively
   tested.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=1aecaf4e-24c0-4f96-861b-f3b4473c7525"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=1aecaf4e-24c0-4f96-861b-f3b4473c7525</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=1c7e28aa-c938-408b-856c-dfae456303e4</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <title>Going Crazy with Generics, or The Story of ThreadLocal(Of T)</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</link>
      <pubDate>Tue, 10 Nov 2009 06:03:31 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;a href="http://msmvps.com/blogs/jon_skeet/archive/2009/11/04/revisiting-randomness.aspx"&gt;Jon
   Skeet recently blogged&lt;/a&gt; about the performance of [ThreadStatic] versus the new
   .NET 4.0 ThreadLocal&amp;lt;T&amp;gt;. I was surprised to see that ThreadLocal&amp;lt;T&amp;gt; was
   faster than [ThreadStatic], because ThreadLocal&amp;lt;T&amp;gt; uses [ThreadStatic] as the
   underlying primitive.
&lt;/p&gt;
&lt;p&gt;
   How do you go from a static field to a per instance field? It's simple, once you think
   of it. You (ab)use generic types. Here's a simplified ThreadLocal&amp;lt;T&amp;gt;:
&lt;/p&gt;
&lt;p&gt;
   &lt;code&gt;&lt;font color=#0000ff&gt;public class&lt;/font&gt; &lt;font color=#2b91af&gt;ThreadLocal&lt;/font&gt;&amp;lt;T&amp;gt;&lt;br&gt;
   {&lt;br&gt;
   &amp;nbsp; &lt;font color=#2b91af&gt;HolderBase&lt;/font&gt; holder;&lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;static int&lt;/font&gt; count;&lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;static&lt;/font&gt; &lt;font color=#2b91af&gt;Type&lt;/font&gt;[] types = &lt;font color=#0000ff&gt;new&lt;/font&gt; &lt;font color=#2b91af&gt;Type&lt;/font&gt;[]
   { &lt;font color=#0000ff&gt;typeof&lt;/font&gt;(&lt;font color=#2b91af&gt;C1&lt;/font&gt;), &lt;font color=#0000ff&gt;typeof&lt;/font&gt;(&lt;font color=#2b91af&gt;C2&lt;/font&gt;), &lt;font color=#0000ff&gt;typeof&lt;/font&gt;(&lt;font color=#2b91af&gt;C3&lt;/font&gt;)
   };&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;abstract class&lt;/font&gt; &lt;font color=#2b91af&gt;HolderBase&lt;/font&gt;
   &lt;br&gt;
   &amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;internal abstract&lt;/font&gt; T Value { &lt;font color=#0000ff&gt;get&lt;/font&gt;; &lt;font color=#0000ff&gt;set&lt;/font&gt;;
   }&lt;br&gt;
   &amp;nbsp; }&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;class&lt;/font&gt; &lt;font color=#2b91af&gt;C1&lt;/font&gt; { }&lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;class&lt;/font&gt; &lt;font color=#2b91af&gt;C2&lt;/font&gt; { }&lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;class&lt;/font&gt; &lt;font color=#2b91af&gt;C3&lt;/font&gt; { }&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;class&lt;/font&gt; &lt;font color=#2b91af&gt;Holder&lt;/font&gt;&lt;T1, T3 T2,&gt; : &lt;font color=#2b91af&gt;HolderBase&lt;/font&gt;
   &lt;br&gt;
   &amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;font color=#2b91af&gt;ThreadStatic&lt;/font&gt;]&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;static&lt;/font&gt; T val;&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;internal override&lt;/font&gt; T Value&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;get&lt;/font&gt; { &lt;font color=#0000ff&gt;return&lt;/font&gt; val;
   }&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;set&lt;/font&gt; { val = &lt;font color=#0000ff&gt;value&lt;/font&gt;;
   }&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;
   &amp;nbsp; }&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;public&lt;/font&gt; ThreadLocal()&lt;br&gt;
   &amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; holder = MakeHolder(&lt;font color=#2b91af&gt;Interlocked&lt;/font&gt;.Increment(&lt;font color=#0000ff&gt;ref&lt;/font&gt; count)
   - 1);&lt;br&gt;
   &amp;nbsp; }&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#2b91af&gt;HolderBase&lt;/font&gt; MakeHolder(&lt;font color=#0000ff&gt;int&lt;/font&gt; index)&lt;br&gt;
   &amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#2b91af&gt;Type&lt;/font&gt; t1 = types[index % 3];&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#2b91af&gt;Type&lt;/font&gt; t2 = types[(index / 3) % 3];&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#2b91af&gt;Type&lt;/font&gt; t3 = types[index / 9];&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#2b91af&gt;Type&lt;/font&gt; type = &lt;font color=#0000ff&gt;typeof&lt;/font&gt;(&lt;font color=#2b91af&gt;Holder&lt;/font&gt;&amp;lt;,,&amp;gt;).MakeGenericType(&lt;font color=#0000ff&gt;typeof&lt;/font&gt;(T),
   t1, t2, t3);&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;return&lt;/font&gt; (&lt;font color=#2b91af&gt;HolderBase&lt;/font&gt;)&lt;font color=#2b91af&gt;Activator&lt;/font&gt;.CreateInstance(type);&lt;br&gt;
   &amp;nbsp; }&lt;br&gt;
   &lt;br&gt;
   &amp;nbsp; &lt;font color=#0000ff&gt;public&lt;/font&gt; T Value&lt;br&gt;
   &amp;nbsp; {&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;get&lt;/font&gt; { &lt;font color=#0000ff&gt;return&lt;/font&gt; holder.Value;
   }&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;font color=#0000ff&gt;set&lt;/font&gt; { holder.Value = &lt;font color=#0000ff&gt;value&lt;/font&gt;;
   }&lt;br&gt;
   &amp;nbsp; }&lt;br&gt;
   }&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
   The real ThreadLocal&amp;lt;T&amp;gt; type in .NET 4.0 beta 2 is much more complex, because
   it has to deal with recycling the types and protecting against returning a value from
   a recycled type. It also uses a higher base counting system&amp;nbsp; to number the types,
   the maximum number of types generated (per T) is 4096 in beta 2. After you allocate
   more than that, it falls back to using a holder type that uses Thread.SetData().
&lt;/p&gt;
&lt;p&gt;
   I'm not sure what to make of this. It's a clever trick, but I think it ultimately
   is too clever. I benchmarked a simpler approach using arrays (where each ThreadLocal&amp;lt;T&amp;gt;
   simply allocated an index in the [ThreadStatic] array) and it was a little bit faster
   and doesn't suffer from the downsides of creating a gazillion types (which probably
   take more memory and those types stay around until the AppDomain is destroyed).
&lt;/p&gt;
&lt;p&gt;
   Finally a tip for Microsoft, move the Cn types out of ThreadLocal, because currently
   they are also generic (due to the fact that C# automatically makes nested types generic
   based on the outer type's generic type parameters) and that is unnecessarily wasteful.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=1c7e28aa-c938-408b-856c-dfae456303e4"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=1c7e28aa-c938-408b-856c-dfae456303e4</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      While the 0.42 release is still baking, a new development snapshot is available.
   </p>
        <p>
      Changes:
   </p>
        <ul>
          <li>
         Nat worked on clipboard and drag-and-drop support.</li>
          <li>
         Volker worked on print support.</li>
          <li>
         Various awt fixes/improvements.</li>
          <li>
         Code cleanup/refactoring to prepare for IKVM.Reflection (replacement of IKVM.Reflection.Emit).</li>
          <li>
         Fixed ikvmstub to ignore private interfaces.</li>
          <li>
         Removed .NET 4.0 beta 1 workarounds.</li>
          <li>
         Simplified the obj1.getClass() == obj2.getClass() intrinsic to avoid requiring full
         trust on .NET 4.0.</li>
          <li>
         Optimized field reflection. We now delay creating the dynamic methods to access the
         field until after the field has been accessed a couple of times, this saves a lot
         of memory for fields that are only usused a few times.</li>
          <li>
         Added -publicpackage:&lt;pkg&gt; option to ikvmc. Contributed by Eyal Alaluf of Mainsoft.</li>
          <li>
         Added public API to get ClassLoader from Assembly.</li>
          <li>
         Added (optional) per-module initialization to custom assembly class loaders.</li>
          <li>
         Added ikvmc option -nopeercrossreference and the ability to use -r with peer assemblies.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.43.3595.zip">ikvmbin-0.43.3595.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=de793ed8-a01e-4ce4-ae12-49c02d4b03fa" />
      </body>
      <title>New Development Snapshot</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</link>
      <pubDate>Wed, 04 Nov 2009 14:23:41 GMT</pubDate>
      <description>&lt;p&gt;
   While the 0.42 release is still baking, a new development snapshot is available.
&lt;/p&gt;
&lt;p&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Nat worked on clipboard and drag-and-drop support.&lt;/li&gt;
   &lt;li&gt;
      Volker worked on print support.&lt;/li&gt;
   &lt;li&gt;
      Various awt fixes/improvements.&lt;/li&gt;
   &lt;li&gt;
      Code cleanup/refactoring to prepare for IKVM.Reflection (replacement of IKVM.Reflection.Emit).&lt;/li&gt;
   &lt;li&gt;
      Fixed ikvmstub to ignore private interfaces.&lt;/li&gt;
   &lt;li&gt;
      Removed .NET 4.0 beta 1 workarounds.&lt;/li&gt;
   &lt;li&gt;
      Simplified the obj1.getClass() == obj2.getClass() intrinsic to avoid requiring full
      trust on .NET 4.0.&lt;/li&gt;
   &lt;li&gt;
      Optimized field reflection. We now delay creating the dynamic methods to access the
      field until after the field has been accessed a couple of times, this saves a lot
      of memory for fields that are only usused a few times.&lt;/li&gt;
   &lt;li&gt;
      Added -publicpackage:&amp;lt;pkg&amp;gt; option to ikvmc. Contributed by Eyal Alaluf of Mainsoft.&lt;/li&gt;
   &lt;li&gt;
      Added public API to get ClassLoader from Assembly.&lt;/li&gt;
   &lt;li&gt;
      Added (optional) per-module initialization to custom assembly class loaders.&lt;/li&gt;
   &lt;li&gt;
      Added ikvmc option -nopeercrossreference and the ability to use -r with peer assemblies.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.43.3595.zip"&gt;ikvmbin-0.43.3595.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=de793ed8-a01e-4ce4-ae12-49c02d4b03fa"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=de793ed8-a01e-4ce4-ae12-49c02d4b03fa</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      On "Patch Tuesday" two weeks ago Microsoft released security bulletin <a href="http://www.microsoft.com/technet/security/Bulletin/MS09-061.mspx">MS09-061</a>.
      This bulletin describes three issues, one of which I reported to Microsoft on <a href="/PermaLink.aspx?guid=e548c92d-42f7-4691-8b76-83adc59001f8">September
      12, 2008</a>. I will describe the details of what is now known as <a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0091">CVE-2009-0091</a>.
      I have no inside knowledge of the other two vulnerabilities.
   </p>
        <p>
      As mentioned in the original blog entry, I found the bug while browsing the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8c09fd61-3f26-4555-ae17-3121b4f51d4d&amp;displaylang=en">Rotor</a> sources.
      Here's the fragment that caught my eye:
   </p>
        <p>
          <code>
            <font color="#008000">    // This method will combine this delegate
      with the passed delegate<br />
          // to form a new delegate.</font>
            <br />
            <font color="#0000ff">    protected override sealed</font>
            <font color="#2b91af">Delegate</font> CombineImpl(<font color="#2b91af">Delegate</font> follow)<br />
          {<br /><font color="#008000">        // Verify that the
      types are the same...<br />
              // Actually, we don't need to do this,
      because Delegate.Combine already checks this.<br />
      //      if (!InternalEqualTypes(this, follow)<br />
      //          throw new ArgumentException(...)</font></code>
        </p>
        <p>
      This is from <a href="http://www.koders.com/csharp/fid0CEAECF1A5FE5FD63AD9A545B67380CA53D5CFFD.aspx?s=idef:system#L252">multicastdelegate.cs</a> (<b>Warning</b>:
      this link leads to <b>Microsoft Shared Source</b> licensed code).
   </p>
        <p>
      The code that is commented out is a security check. After seeing this I immediately
      confirmed (using ildasm) that the, at that time current, production version of mscorlib
      also didn't include the check. I also checked .NET 1.1 and in that version the check
      is present. I also checked a pre-release version of Silverlight 2.0 and it also didn't
      include the check. The subsequent Silverlight 2.0 release on <a href="http://weblogs.asp.net/scottgu/archive/2008/10/14/silverlight-2-released.aspx">October
      14, 2008</a> included the fix. Microsoft did not find it necessary to credit me with
      the fix (not even privately).
   </p>
        <p>
          <b>Why Is This a Security Vulnerability?</b>
        </p>
        <p>
      In my <a href="/PermaLink.aspx?guid=3cc8beef-3424-488d-8429-50e244f15ccc">example
      type safety exploit</a>, I used a union to bypass type safety. That wasn't an actual
      security vulnerability because such a union requires full trust. However, if we can
      combine two different delegate types we can do the same and because of the missing
      type check this was possible.
   </p>
        <p>
      If you take <a href="http://www.frijters.net/TypeSafetyExploitPoC.cs.txt">TypeSafetyExploitPoC.cs</a> and
      replace the TypeSystemHole method with the following and add a reference to an assembly
      containing <a href="http://www.frijters.net/CombinePoCHelper.il.txt">CombinePoCHelper.il</a> (written
      in MSIL because that is the easiest way to write your own MulticastDelegate subclass
      that can call the protected CombineImpl method).
   </p>
        <p>
          <code>
            <font color="#0000ff">delegate void</font> AnotherDelegate(<font color="#2b91af">Union1</font> u2); 
      <br /><br /><font color="#0000ff">static</font><font color="#2b91af">Union1</font> TypeSystemHole(<font color="#2b91af">Union2</font> u2)<br />
      {<br /><font color="#2b91af">  Union1</font> u1 = <font color="#0000ff">null</font>;<br /><font color="#2b91af">  CombineHelper</font> del1 = <font color="#0000ff">delegate</font> {
      };<br /><font color="#2b91af">  AnotherDelegate</font> del2 = <font color="#0000ff">delegate</font>(<font color="#2b91af">Union1</font> u)
      { u1 = u; };<br />
        del1 = (<font color="#2b91af">CombineHelper</font>)<font color="#2b91af">CombineHelper</font>.CombineHack(del1,
      del2);<br />
        del1(u2);<br /><font color="#0000ff">  return</font> u1;<br />
      }</code>
        </p>
        <p>
      Voila!
   </p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=d1c6348b-acb9-4997-82b0-10a85d70e22a" />
      </body>
      <title>MS09-061 Vulnerability Details</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</link>
      <pubDate>Tue, 27 Oct 2009 07:17:15 GMT</pubDate>
      <description>&lt;p&gt;
   On "Patch Tuesday" two weeks ago Microsoft released security bulletin &lt;a href="http://www.microsoft.com/technet/security/Bulletin/MS09-061.mspx"&gt;MS09-061&lt;/a&gt;.
   This bulletin describes three issues, one of which I reported to Microsoft on &lt;a href="/PermaLink.aspx?guid=e548c92d-42f7-4691-8b76-83adc59001f8"&gt;September
   12, 2008&lt;/a&gt;. I will describe the details of what is now known as &lt;a href="http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0091"&gt;CVE-2009-0091&lt;/a&gt;.
   I have no inside knowledge of the other two vulnerabilities.
&lt;/p&gt;
&lt;p&gt;
   As mentioned in the original blog entry, I found the bug while browsing the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8c09fd61-3f26-4555-ae17-3121b4f51d4d&amp;amp;displaylang=en"&gt;Rotor&lt;/a&gt; sources.
   Here's the fragment that caught my eye:
&lt;/p&gt;
&lt;p&gt;
   &lt;code&gt;&lt;font color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // This method will combine this delegate
   with the passed delegate&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; // to form a new delegate.&lt;/font&gt;
   &lt;br&gt;
   &lt;font color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected override sealed&lt;/font&gt; &lt;font color=#2b91af&gt;Delegate&lt;/font&gt; CombineImpl(&lt;font color=#2b91af&gt;Delegate&lt;/font&gt; follow)&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;
   &lt;font color=#008000&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Verify that the
   types are the same...&lt;br&gt;
   &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Actually, we don't need to do this,
   because Delegate.Combine already checks this.&lt;br&gt;
   //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!InternalEqualTypes(this, follow)&lt;br&gt;
   //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ArgumentException(...)&lt;/font&gt;&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
   This is from &lt;a href="http://www.koders.com/csharp/fid0CEAECF1A5FE5FD63AD9A545B67380CA53D5CFFD.aspx?s=idef:system#L252"&gt;multicastdelegate.cs&lt;/a&gt; (&lt;b&gt;Warning&lt;/b&gt;:
   this link leads to &lt;b&gt;Microsoft Shared Source&lt;/b&gt; licensed code).
&lt;/p&gt;
&lt;p&gt;
   The code that is commented out is a security check. After seeing this I immediately
   confirmed (using ildasm) that the, at that time current, production version of mscorlib
   also didn't include the check. I also checked .NET 1.1 and in that version the check
   is present. I also checked a pre-release version of Silverlight 2.0 and it also didn't
   include the check. The subsequent Silverlight 2.0 release on &lt;a href="http://weblogs.asp.net/scottgu/archive/2008/10/14/silverlight-2-released.aspx"&gt;October
   14, 2008&lt;/a&gt; included the fix. Microsoft did not find it necessary to credit me with
   the fix (not even privately).
&lt;/p&gt;
&lt;p&gt;
   &lt;b&gt;Why Is This a Security Vulnerability?&lt;/b&gt;
&lt;/p&gt;
&lt;p&gt;
   In my &lt;a href="/PermaLink.aspx?guid=3cc8beef-3424-488d-8429-50e244f15ccc"&gt;example
   type safety exploit&lt;/a&gt;, I used a union to bypass type safety. That wasn't an actual
   security vulnerability because such a union requires full trust. However, if we can
   combine two different delegate types we can do the same and because of the missing
   type check this was possible.
&lt;/p&gt;
&lt;p&gt;
   If you take &lt;a href="http://www.frijters.net/TypeSafetyExploitPoC.cs.txt"&gt;TypeSafetyExploitPoC.cs&lt;/a&gt; and
   replace the TypeSystemHole method with the following and add a reference to an assembly
   containing &lt;a href="http://www.frijters.net/CombinePoCHelper.il.txt"&gt;CombinePoCHelper.il&lt;/a&gt; (written
   in MSIL because that is the easiest way to write your own MulticastDelegate subclass
   that can call the protected CombineImpl method).
&lt;/p&gt;
&lt;p&gt;
   &lt;code&gt;&lt;font color=#0000ff&gt;delegate void&lt;/font&gt; AnotherDelegate(&lt;font color=#2b91af&gt;Union1&lt;/font&gt; u2); 
   &lt;br&gt;
   &lt;br&gt;
   &lt;font color=#0000ff&gt;static&lt;/font&gt; &lt;font color=#2b91af&gt;Union1&lt;/font&gt; TypeSystemHole(&lt;font color=#2b91af&gt;Union2&lt;/font&gt; u2)&lt;br&gt;
   {&lt;br&gt;
   &lt;font color=#2b91af&gt;&amp;nbsp; Union1&lt;/font&gt; u1 = &lt;font color=#0000ff&gt;null&lt;/font&gt;;&lt;br&gt;
   &lt;font color=#2b91af&gt;&amp;nbsp; CombineHelper&lt;/font&gt; del1 = &lt;font color=#0000ff&gt;delegate&lt;/font&gt; {
   };&lt;br&gt;
   &lt;font color=#2b91af&gt;&amp;nbsp; AnotherDelegate&lt;/font&gt; del2 = &lt;font color=#0000ff&gt;delegate&lt;/font&gt;(&lt;font color=#2b91af&gt;Union1&lt;/font&gt; u)
   { u1 = u; };&lt;br&gt;
   &amp;nbsp; del1 = (&lt;font color=#2b91af&gt;CombineHelper&lt;/font&gt;)&lt;font color=#2b91af&gt;CombineHelper&lt;/font&gt;.CombineHack(del1,
   del2);&lt;br&gt;
   &amp;nbsp; del1(u2);&lt;br&gt;
   &lt;font color=#0000ff&gt;&amp;nbsp; return&lt;/font&gt; u1;&lt;br&gt;
   }&lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;
   Voila!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=d1c6348b-acb9-4997-82b0-10a85d70e22a"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=d1c6348b-acb9-4997-82b0-10a85d70e22a</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      A new release candidate is available.
   </p>
        <p>
      Changes since previous release candidate:
   </p>
        <ul>
          <li>
         Changed version to 0.42.0.2.</li>
          <li>
         Fix for bug #<a href="http://sourceforge.net/support/tracker.php?aid=2883889">2883889</a>.</li>
          <li>
         Fix for bug #<a href="http://sourceforge.net/support/tracker.php?aid=2881954">2881954</a>.</li>
          <li>
         Fixed automagic serialization interop to work correctly in the face of a __WorkaroundBaseClass__
         base type.</li>
          <li>
         Small update for .NET 4.0 beta 2.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.42.0.2.zip">ikvmbin-0.42.0.2.zip</a></p>
        <p>
      Sources: <a href="http://www.frijters.net/ikvm-0.42.0.2.zip">ikvm-0.42.0.2.zip</a>, <a href="http://www.frijters.net/openjdk6-b16-stripped.zip">openjdk6-b16-stripped.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=e5724cd2-198d-4fe5-a178-05f894d1a599" />
      </body>
      <title>IKVM 0.42 Release Candidate 2</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</link>
      <pubDate>Mon, 26 Oct 2009 05:06:45 GMT</pubDate>
      <description>&lt;p&gt;
   A new release candidate is available.
&lt;/p&gt;
&lt;p&gt;
   Changes since previous release candidate:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Changed version to 0.42.0.2.&lt;/li&gt;
   &lt;li&gt;
      Fix for bug #&lt;a href="http://sourceforge.net/support/tracker.php?aid=2883889"&gt;2883889&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Fix for bug #&lt;a href="http://sourceforge.net/support/tracker.php?aid=2881954"&gt;2881954&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Fixed automagic serialization interop to work correctly in the face of a __WorkaroundBaseClass__
      base type.&lt;/li&gt;
   &lt;li&gt;
      Small update for .NET 4.0 beta 2.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.42.0.2.zip"&gt;ikvmbin-0.42.0.2.zip&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   Sources: &lt;a href="http://www.frijters.net/ikvm-0.42.0.2.zip"&gt;ikvm-0.42.0.2.zip&lt;/a&gt;, &lt;a href="http://www.frijters.net/openjdk6-b16-stripped.zip"&gt;openjdk6-b16-stripped.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=e5724cd2-198d-4fe5-a178-05f894d1a599"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=e5724cd2-198d-4fe5-a178-05f894d1a599</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=5942661b-b88f-4afb-9af7-46e56544b96c</wfw:commentRss>
      <slash:comments>4</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      A new release candidate is available.
   </p>
        <p>
      Changes since previous release candidate:
   </p>
        <ul>
          <li>
         Changed version to 0.42.0.1.</li>
          <li>
         Fixed a regression introduced in 0.40 that caused a System.NotSupportedException to
         be thrown by ikvmc when compiling multiple targets where one target (indirectly) implements
         a non-public interface from another target. Thanks to Erik Vullings for reporting
         this.</li>
        </ul>
        <p>
      Binaries available here: <a href="http://www.frijters.net/ikvmbin-0.42.0.1.zip">ikvmbin-0.42.0.1.zip</a></p>
        <p>
      Sources: <a href="http://www.frijters.net/ikvm-0.42.0.1.zip">ikvm-0.42.0.1.zip</a>, <a href="http://www.frijters.net/openjdk6-b16-stripped.zip">openjdk6-b16-stripped.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=5942661b-b88f-4afb-9af7-46e56544b96c" />
      </body>
      <title>IKVM 0.42 Release Candidate 1</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</link>
      <pubDate>Mon, 19 Oct 2009 04:56:56 GMT</pubDate>
      <description>&lt;p&gt;
   A new release candidate is available.
&lt;/p&gt;
&lt;p&gt;
   Changes since previous release candidate:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Changed version to 0.42.0.1.&lt;/li&gt;
   &lt;li&gt;
      Fixed a regression introduced in 0.40 that caused a System.NotSupportedException to
      be thrown by ikvmc when compiling multiple targets where one target (indirectly) implements
      a non-public interface from another target. Thanks to Erik Vullings for reporting
      this.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binaries available here: &lt;a href="http://www.frijters.net/ikvmbin-0.42.0.1.zip"&gt;ikvmbin-0.42.0.1.zip&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   Sources: &lt;a href="http://www.frijters.net/ikvm-0.42.0.1.zip"&gt;ikvm-0.42.0.1.zip&lt;/a&gt;, &lt;a href="http://www.frijters.net/openjdk6-b16-stripped.zip"&gt;openjdk6-b16-stripped.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=5942661b-b88f-4afb-9af7-46e56544b96c"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=5942661b-b88f-4afb-9af7-46e56544b96c</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      The first release candidate is available.
   </p>
        <p>
      Changes since last 0.41 development snapshot:
   </p>
        <ul>
          <li>
         Changed version to 0.42.0.0.</li>
          <li>
         Fixed virtual file system regression that caused NullReferenceException when trying
         to access a non-existing directory.</li>
          <li>
         Volker added some print support code.</li>
          <li>
         Fixed assertion in ILGenerator.</li>
          <li>
         Fixed regression in reflection introduced when we started allowing open generic types
         to be visible to Java (for stack walking).</li>
          <li>
         Fixed bug #<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2876211&amp;group_id=69637&amp;atid=525264">2876211</a>.</li>
        </ul>
        <p>
      Binary available here: <a href="http://www.frijters.net/ikvmbin-0.42.0.0.zip">ikvmbin-0.42.0.0.zip</a></p>
        <p>
      Sources: <a href="http://www.frijters.net/ikvm-0.42.0.0.zip">ikvm-0.42.0.0.zip</a>, <a href="http://www.frijters.net/openjdk6-b16-stripped.zip">openjdk6-b16-stripped.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b" />
      </body>
      <title>IKVM 0.42 Release Candidate 0</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</link>
      <pubDate>Mon, 12 Oct 2009 04:43:34 GMT</pubDate>
      <description>&lt;p&gt;
   The first release candidate is available.
&lt;/p&gt;
&lt;p&gt;
   Changes since last 0.41 development snapshot:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Changed version to 0.42.0.0.&lt;/li&gt;
   &lt;li&gt;
      Fixed virtual file system regression that caused NullReferenceException when trying
      to access a non-existing directory.&lt;/li&gt;
   &lt;li&gt;
      Volker added some print support code.&lt;/li&gt;
   &lt;li&gt;
      Fixed assertion in ILGenerator.&lt;/li&gt;
   &lt;li&gt;
      Fixed regression in reflection introduced when we started allowing open generic types
      to be visible to Java (for stack walking).&lt;/li&gt;
   &lt;li&gt;
      Fixed bug #&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2876211&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;2876211&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binary available here: &lt;a href="http://www.frijters.net/ikvmbin-0.42.0.0.zip"&gt;ikvmbin-0.42.0.0.zip&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
   Sources: &lt;a href="http://www.frijters.net/ikvm-0.42.0.0.zip"&gt;ikvm-0.42.0.0.zip&lt;/a&gt;, &lt;a href="http://www.frijters.net/openjdk6-b16-stripped.zip"&gt;openjdk6-b16-stripped.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=9cbe1eaf-0b79-4d76-8a38-3cabcbe8209b</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      We're starting to prepare for the 0.42 release. This is the last 0.41 development
      snapshot.
   </p>
        <p>
      Changes:
   </p>
        <ul>
          <li>
         Added support for exposing open generic types as Java classes (special "handle" classes
         that can only be used for stack walking). Fixes bug <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2843805&amp;group_id=69637&amp;atid=525264">#2843805</a>.</li>
          <li>
         ArrayTypeWrapper: Fixed a race condition and avoid holding the lock while calling
         external code.</li>
          <li>
         Removed vestigial compact framework support code.</li>
          <li>
         Some source file restructuring (Moved DynamicTypeWrapper and DotNetTypeWrapper classes
         into their own source files and AssemblyClassLoader and BootstrapClassLoader clases
         into AssemblyClassLoader.cs).</li>
          <li>
         Fixed regression introduced with recent label handling changes. Bug <a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2847725&amp;group_id=69637&amp;atid=525264">#2847725</a>.</li>
          <li>
         Various AWT fixes by Nat and Volker.</li>
          <li>
         Rewrote custom assembly class loader initialization to avoid running user code (static
         initializer) while holding a lock and to better handle invocation of getClassLoader()
         during the class loader constructor (or static initializer).</li>
          <li>
         Added hack to expose more custom attributes from mscorlib as annotations.</li>
        </ul>
        <p>
      Binary available here: <a href="http://www.frijters.net/ikvmbin-0.41.3562.zip">ikvmbin-0.41.3562.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=708725bc-c2e8-4794-9b6c-c54a4d3959dd" />
      </body>
      <title>New Development Snapshot</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</link>
      <pubDate>Fri, 02 Oct 2009 04:58:51 GMT</pubDate>
      <description>&lt;p&gt;
   We're starting to prepare for the 0.42 release. This is the last 0.41 development
   snapshot.
&lt;/p&gt;
&lt;p&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      Added support for exposing open generic types as Java classes (special "handle" classes
      that can only be used for stack walking). Fixes bug &lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2843805&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;#2843805&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      ArrayTypeWrapper: Fixed a race condition and avoid holding the lock while calling
      external code.&lt;/li&gt;
   &lt;li&gt;
      Removed vestigial compact framework support code.&lt;/li&gt;
   &lt;li&gt;
      Some source file restructuring (Moved DynamicTypeWrapper and DotNetTypeWrapper classes
      into their own source files and AssemblyClassLoader and BootstrapClassLoader clases
      into AssemblyClassLoader.cs).&lt;/li&gt;
   &lt;li&gt;
      Fixed regression introduced with recent label handling changes. Bug &lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2847725&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;#2847725&lt;/a&gt;.&lt;/li&gt;
   &lt;li&gt;
      Various AWT fixes by Nat and Volker.&lt;/li&gt;
   &lt;li&gt;
      Rewrote custom assembly class loader initialization to avoid running user code (static
      initializer) while holding a lock and to better handle invocation of getClassLoader()
      during the class loader constructor (or static initializer).&lt;/li&gt;
   &lt;li&gt;
      Added hack to expose more custom attributes from mscorlib as annotations.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binary available here: &lt;a href="http://www.frijters.net/ikvmbin-0.41.3562.zip"&gt;ikvmbin-0.41.3562.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=708725bc-c2e8-4794-9b6c-c54a4d3959dd"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=708725bc-c2e8-4794-9b6c-c54a4d3959dd</comments>
    </item>
    <item>
      <trackback:ping>http://weblog.ikvm.net/Trackback.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</trackback:ping>
      <pingback:server>http://weblog.ikvm.net/pingback.aspx</pingback:server>
      <pingback:target>http://weblog.ikvm.net/PermaLink.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</pingback:target>
      <wfw:comment>http://weblog.ikvm.net/CommentView.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</wfw:comment>
      <wfw:commentRss>http://weblog.ikvm.net/SyndicationService.asmx/GetEntryCommentsRss?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</wfw:commentRss>
      <slash:comments>0</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
      Time for another snapshot as there have been a large number of changes since the previous
      snapshot. The Swing/AWT work that Volker and more recently also Nat have been doing
      has resulted in SwingSet2 now running quite nicely. Check out these screenshots:
   </p>
        <p>
          <a href="http://www.frijters.net/swing1.png">
            <img border="0" alt="Click for full size" src="http://www.frijters.net/swing1.png" width="30%" />
          </a>
          <a href="http://www.frijters.net/swing2.png">
            <img border="0" alt="Click for full size" src="http://www.frijters.net/swing2.png" width="30%" />
          </a>
          <a href="http://www.frijters.net/swing3.png">
            <img border="0" alt="Click for full size" src="http://www.frijters.net/swing3.png" width="30%" />
          </a>
        </p>
        <p>
      Note that this is running the OpenJDK Swing code, with the GNU Classpath code the
      source code view and the HTML tab (the blue "Bouncing Babies!" text is HTML rendered
      in the tab) never worked. So this is great progress, but a lot more is still needed.
      Keyboard (and focus) support is still lacking and font support is still fairly limited,
      for example.
   </p>
        <p>
      Changes:
   </p>
        <ul>
          <li>
         More AWT/Swing work by Volker Berlin and Nat Luengnaruemitchai.</li>
          <li>
         Fixed detection of dynamic assemblies (at runtime).</li>
          <li>
         Fixed NullReferenceException when getting annotations on delegate constructor for
         delegates defined in Java.</li>
          <li>
         Added App.config setting (ikvm-emit-symbols) to force emitting debug symbols on or
         off.</li>
          <li>
         Fixed regression introduced in 0.40 that caused ikvmc to crash when specifying a non-public
         custom class loader.</li>
          <li>
         Fixed bug in the handling of Annotation.__ReturnValue and Annotation.__Multiple fake
         types.</li>
          <li>
         Implemented automatic .NET serialization support for Java serializable type (see <a href="/PermaLink.aspx?guid=180f68e5-477e-4ad6-a41a-c7d58b7ff28a">here</a> for
         details).</li>
          <li>
         Fix for #<a href="https://sourceforge.net/tracker/index.php?func=detail&amp;aid=2829717&amp;group_id=69637&amp;atid=525264">2829717</a>.
         Constructing java.lang.String instances from JNI should redirect to static helper
         method.</li>
          <li>
         Several minor IKVM.Reflection.Emit fixes.</li>
          <li>
         Added ILGenerator.__GetILOffset().</li>
          <li>
         Changed CodeEmitter to use ILGenerator.__GetILOffset() (when usig IKVM.Reflection.Emit)
         instead of manually tracking the IL offset.</li>
          <li>
         Added "clever" exception block assistance mode to ILGenerator. In this mode, leave
         and endfinally instructions are only auto inserted when necessary.</li>
          <li>
         Use ILGenerator's new "clever" mode in ikvmc to produce smaller code.</li>
          <li>
         Fixed IKVM.Reflection.Emit to put .pdb file in same location as assembly (instead
         of current directory). Thanks to Dawid Weiss for reporting this.</li>
          <li>
         Removed ISymWrapper.dll dependency from IKVM.Reflection.Emit.PdbWriter.dll.</li>
          <li>
         IKVM.Reflection.Emit.PdbWriter.dll now caches the debugging information, instead of
         "streaming" it into the unmanged PDB writer to workaround the ridiculous memory usage
         of the unmanaged PDB writer. It is now possible to build the full core class library
         assemblies set with debugging enabled.</li>
          <li>
         Fixed major regression in pdb debugging support introduced in 0.40 that caused local
         variable support to be completely broken.</li>
        </ul>
        <p>
      Binary available here: <a href="http://www.frijters.net/ikvmbin-0.41.3524.zip">ikvmbin-0.41.3524.zip</a></p>
        <img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=679704a5-3310-46d7-a4c4-3dcfac73cccd" />
      </body>
      <title>New Development Snapshot</title>
      <guid>http://weblog.ikvm.net/PermaLink.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</guid>
      <link>http://weblog.ikvm.net/PermaLink.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</link>
      <pubDate>Tue, 25 Aug 2009 07:21:38 GMT</pubDate>
      <description>&lt;p&gt;
   Time for another snapshot as there have been a large number of changes since the previous
   snapshot. The Swing/AWT work that Volker and more recently also Nat have been doing
   has resulted in SwingSet2 now running quite nicely. Check out these screenshots:
&lt;/p&gt;
&lt;p&gt;
   &lt;a href="http://www.frijters.net/swing1.png"&gt;&lt;img border=0 alt="Click for full size" src="http://www.frijters.net/swing1.png" width="30%"&gt;&lt;/a&gt; &lt;a href="http://www.frijters.net/swing2.png"&gt;&lt;img border=0 alt="Click for full size" src="http://www.frijters.net/swing2.png" width="30%"&gt;&lt;/a&gt; &lt;a href="http://www.frijters.net/swing3.png"&gt;&lt;img border=0 alt="Click for full size" src="http://www.frijters.net/swing3.png" width="30%"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
   Note that this is running the OpenJDK Swing code, with the GNU Classpath code the
   source code view and the HTML tab (the blue "Bouncing Babies!" text is HTML rendered
   in the tab) never worked. So this is great progress, but a lot more is still needed.
   Keyboard (and focus) support is still lacking and font support is still fairly limited,
   for example.
&lt;/p&gt;
&lt;p&gt;
   Changes:
&lt;/p&gt;
&lt;ul&gt;
   &lt;li&gt;
      More AWT/Swing work by Volker Berlin and Nat Luengnaruemitchai.&lt;/li&gt;
   &lt;li&gt;
      Fixed detection of dynamic assemblies (at runtime).&lt;/li&gt;
   &lt;li&gt;
      Fixed NullReferenceException when getting annotations on delegate constructor for
      delegates defined in Java.&lt;/li&gt;
   &lt;li&gt;
      Added App.config setting (ikvm-emit-symbols) to force emitting debug symbols on or
      off.&lt;/li&gt;
   &lt;li&gt;
      Fixed regression introduced in 0.40 that caused ikvmc to crash when specifying a non-public
      custom class loader.&lt;/li&gt;
   &lt;li&gt;
      Fixed bug in the handling of Annotation.__ReturnValue and Annotation.__Multiple fake
      types.&lt;/li&gt;
   &lt;li&gt;
      Implemented automatic .NET serialization support for Java serializable type (see &lt;a href="/PermaLink.aspx?guid=180f68e5-477e-4ad6-a41a-c7d58b7ff28a"&gt;here&lt;/a&gt; for
      details).&lt;/li&gt;
   &lt;li&gt;
      Fix for #&lt;a href="https://sourceforge.net/tracker/index.php?func=detail&amp;amp;aid=2829717&amp;amp;group_id=69637&amp;amp;atid=525264"&gt;2829717&lt;/a&gt;.
      Constructing java.lang.String instances from JNI should redirect to static helper
      method.&lt;/li&gt;
   &lt;li&gt;
      Several minor IKVM.Reflection.Emit fixes.&lt;/li&gt;
   &lt;li&gt;
      Added ILGenerator.__GetILOffset().&lt;/li&gt;
   &lt;li&gt;
      Changed CodeEmitter to use ILGenerator.__GetILOffset() (when usig IKVM.Reflection.Emit)
      instead of manually tracking the IL offset.&lt;/li&gt;
   &lt;li&gt;
      Added "clever" exception block assistance mode to ILGenerator. In this mode, leave
      and endfinally instructions are only auto inserted when necessary.&lt;/li&gt;
   &lt;li&gt;
      Use ILGenerator's new "clever" mode in ikvmc to produce smaller code.&lt;/li&gt;
   &lt;li&gt;
      Fixed IKVM.Reflection.Emit to put .pdb file in same location as assembly (instead
      of current directory). Thanks to Dawid Weiss for reporting this.&lt;/li&gt;
   &lt;li&gt;
      Removed ISymWrapper.dll dependency from IKVM.Reflection.Emit.PdbWriter.dll.&lt;/li&gt;
   &lt;li&gt;
      IKVM.Reflection.Emit.PdbWriter.dll now caches the debugging information, instead of
      "streaming" it into the unmanged PDB writer to workaround the ridiculous memory usage
      of the unmanaged PDB writer. It is now possible to build the full core class library
      assemblies set with debugging enabled.&lt;/li&gt;
   &lt;li&gt;
      Fixed major regression in pdb debugging support introduced in 0.40 that caused local
      variable support to be completely broken.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
   Binary available here: &lt;a href="http://www.frijters.net/ikvmbin-0.41.3524.zip"&gt;ikvmbin-0.41.3524.zip&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://weblog.ikvm.net/aggbug.ashx?id=679704a5-3310-46d7-a4c4-3dcfac73cccd"&gt;</description>
      <comments>http://weblog.ikvm.net/CommentView.aspx?guid=679704a5-3310-46d7-a4c4-3dcfac73cccd</comments>
    </item>
  </channel>
</rss>