[Ikvm-developers] issue with getPackageName() API
Brought to you by:
jfrijters
|
From: Neeraj A. <nee...@gm...> - 2006-08-23 08:03:13
|
Hi, I used IKVM to convert my existing java binaries to .NET assembly (dll). In my .NET run, I see getPackageName() API returning null for a class. I can see that there is some package name for that class. Digging further I found the issue is probably in VMClassLoader.cs. This class registers to AssemblyLoad event. A cache of all the types (from currently loaded assembly) is maintained by this class. This cache is reset as soon as AssemblyLoad event is triggered. However it is possible that this event is triggered during the cache is being populated. To be specific, between AppDomain.get_CurrentDomain().GetAssemblies() and packageCache = packages. So the cache does not contains types for any assemblies loaded during the cache population process. This is observed in IKVM version 28.1 [also reproducible on versions 26 and 24]. Please correct me if I am overlooking or misinterpreting anything here. Thanks, Neeraj |