Re: [Ikvm-developers] IKVM with Mono Linker
Brought to you by:
jfrijters
From: Jeroen F. <je...@su...> - 2010-01-27 05:00:24
|
The type really is there. I just looked it up again (in the IKVM.OpenJDK.SwingAWT.dll from ikvmbin-0.42.0.4.zip) using ildasm. I didn't mean modreq/modopt, but the various custom attributes that the ikvm runtime uses to finds its way around the generated code. As an example, suppose the Mono linker decides that an interface that a type implements is never used and removes it (I don't know if it can actually do this), then the corresponding IKVM.Attributes.ImplementsAttribute will still contain the name of that interface, if then at runtime some code reflects against that type, you'll probably get a weird exception because the ikvm runtime cannot find the interface. Regards, Jeroen > -----Original Message----- > From: Alexandre Rocha Lima e Marcondes > [mailto:ale...@gm...] > Sent: Tuesday, January 26, 2010 8:09 PM > To: Jeroen Frijters > Subject: Re: [Ikvm-developers] IKVM with Mono Linker > > I tried to open it using .NET Reflector <http://www.red- > gate.com/products/reflector/> on this assembly and it complained that > it could not find javax.accessibility.Accessible on 0.42.0.4 binary > bundle that is present on the IKVM Blog. By IKVM specific metadata you > mean modreq and modopt on the methods and classes? If so, I modified > mono linker and Cecil so that it understands it when I had a problem > trying to use it against the 0.42.0.0 version. > > -- > Regards, > Alexandre Rocha Lima e Marcondes > > > > On Tue, Jan 26, 2010 at 3:26 AM, Jeroen Frijters <je...@su...> > wrote: > > > Hi Alexandre, > > Using the Mono linker is unlikely to work, because it doesn't > understand the ikvm specific metadata. > > In any case, javax.accessibility.Accessible is in > IKVM.OpenJDK.SwingAWT.dll, so I don't know why you'd have an issue with > that. > > Regards, > Jeroen > > > > -----Original Message----- > > From: Alexandre Rocha Lima e Marcondes > > [mailto:ale...@gm...] > > Sent: Monday, January 25, 2010 9:44 PM > > To: ikv...@li... > > Subject: [Ikvm-developers] IKVM with Mono Linker > > > > I am trying to use Mono Linker <http://www.mono- > project.com/Linker> on > > an assembly compiled with IKVM, using the 0.42.04 version (0.42 > Update > > 1 RC 0 bundle). I have discovered that the java.awt.Panel > class in > > IKVM.OpenJDK.SwingAWT.dll requires > javax.accessibility.Accessible and > > it is not on any Assembly bundle. I presume it should be on > > IKVM.OpenJDK.Misc.dll assembly. > > > > What could I do in order to correct this problem, implement it > or make > > it right for the next release? > > > > -- > > Regards, > > Alexandre Rocha Lima e Marcondes > > > |