Re: [Ikvm-developers] Using C# attributes from Java
Brought to you by:
jfrijters
|
From: Michael B. <md...@sa...> - 2013-04-27 00:09:15
|
On Fri, Apr 26, 2013 at 4:43 PM, Michael Bayne <md...@sa...> wrote:
> I should also point out that this is using IKVM 0.46.0.1, which I know is
> woefully out of date, so if this is a known issue that has been fixed long
> since, feel free to tell me to shut the hell up and update my
> MonoTouch-compatible IKVM fork.
>
I was able to use my small test case to reproduce the same behavior
with 7.3.4822.0, so that's a bit less ancient:
@cli.MonoTouch.Foundation.RegisterAttribute.Annotation("Test")
public class Foo
{
@cli.System.ThreadStaticAttribute.Annotation
private static int threadLocalCounter;
}
yields:
.custom instance void
[monotouch]MonoTouch.Foundation.RegisterAttribute::.ctor(string) = (01 00
04 54 65 73 74 00 00 ) // ...Test..
.custom instance void class
[mscorlib]System.ThreadStaticAttribute::'.ctor'() = (01 00 00 00 ) // ....
also, when running monodis, it reports this error:
Missing method .ctor in assembly
/Users/mdb/research/ikvm/cs-attrs/Foo.dll, type
MonoTouch.Foundation.RegisterAttribute
It doesn't report an error when running monodis on an assembly that
references MonoTouch.Foundation.RegisterAttribute from C#.
-- md...@sa...
|