[Ikvm-developers] Problems with NetExp
Brought to you by:
jfrijters
|
From: Jonathan P. <jp...@ny...> - 2003-08-16 16:55:39
|
Jeroen,
These may be known bugs, but I get skipped methods and fields when I
shouldn't when using enums and constants in interfaces with netexp.
For example,
The following code in Problem1 below skips the second constructor method
because it assumes that both constructors have int arguments even though
they are different enum types.
Problem1:
using System;
namespace EnumBug
{ public enum Enum1
{
V1,
V2
}
public enum Enum2
{
V3,
V4
}
public class EnumBug
{
public EnumBug (Enum1 theEnum1)
{
}
public EnumBug (Enum2 theEnum2)
{
}
}
}
In Problem2 below, it looks like ikvmc converts the java code below into a
.NET interface with fields, which doesn't seem legal, and then netexp skips
the fields so they don't end up in classes that implements the interface
(i.e. java.awt.image.ColorModel).
Problem2:
package java.awt;
public interface Transparency
{
int OPAQUE = 1;
int BITMASK = 2;
int TRANSLUCENT = 3;
int getTransparency();
}
-Jonathan
|