Menu

#310 Class not emitted when hierarchy contains hidden final members

v1.0 (example)
closed-works-for-me
nobody
5
2016-06-09
2016-06-08
SolarAaron
No

Hello,

I found this case where a class hierarchy defined as such:

public class Base{
public final object Property{ get; set; }
}

public class Derived1: Base{
public new object Property{ get; set }
}

Cannot be inherited from a java class, such that ikvmc notifies with warning IKVMC0104 noting that final method get_Property() defined in Base is overriden in Derived1 and the resulting assembly doesn't contain the classes inheriting Derived1.

Is this a bug, or is there a workaround for this situation?

Thanks.

Discussion

  • Jeroen Frijters

    Jeroen Frijters - 2016-06-09

    IKVMC0104 is a verification error, which probably means that you tried to override a .NET method that isn't virtual, that obviously isn't possible

     
  • Jeroen Frijters

    Jeroen Frijters - 2016-06-09
    • status: open --> closed-works-for-me
     

Log in to post a comment.

MongoDB Logo MongoDB