RE: [Ikvm-developers] ikvmc properties issue from 0.14 to 0.20
Brought to you by:
jfrijters
From: Jeroen F. <je...@su...> - 2005-09-14 14:27:07
|
Valdemar Mejstad wrote: > I just upgraded from ikvm 0.14 to 0.20 and ran into new compilation=20 > errors that weren't there in ikvm 0.14. Here's the case simplified: [...] > When I try to access the A.AObject property from C# like this: >=20 > java.package.A a =3D new java.package.A(); > java.package.A a2 =3D a.AObject; >=20 > I get: 'java.package.A' does not contain a definition for 'AObject'. >=20 > Is this a bug or has the behaviour of ikvmc changed? I fixed the compiler to add the HideBySig method attribute flag to every method it generates and this causes the C# compiler to see the miranda method in B and because B doesn't have a property, it refuses to honor the property of A. At the moment I don't know if there is anything I can do about this, but I'll give it some thought. In the mean time, you can work around the problem by adding the propery to B as well (in your xml map). Regards, Jeroen |