Highlighted

BUG: getter and setter in 2 separate interfaces

New Here ,
Oct 22, 2014

Copy link to clipboard

Copied

In our current product we have 2 interfaces (Interface1 and Interface2), Interface2 extends Interface1.

In Interface1 we set the getter for a property, and in Interface 2 we set the setter for the same property, here is the code:

public interface ILoadable

    {

   function get ColorScheme():String;

    }

public interface IUploadable extends ILoadable
    {  

    function set ColorScheme(value:String):void;

    }

This was working fine in AIR SDK 3.5, but when we upgraded to SDK 15, we get this error:

Error: Cannot override an interface method.  Method ColorScheme conflicts with a method in base interface ILoadable.

Is this a bug in the SDK? or is the new SDK more strict, not allowing a getter and setter being located in separate interfaces/classes?

TOPICS
Development

Views

109

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

BUG: getter and setter in 2 separate interfaces

New Here ,
Oct 22, 2014

Copy link to clipboard

Copied

In our current product we have 2 interfaces (Interface1 and Interface2), Interface2 extends Interface1.

In Interface1 we set the getter for a property, and in Interface 2 we set the setter for the same property, here is the code:

public interface ILoadable

    {

   function get ColorScheme():String;

    }

public interface IUploadable extends ILoadable
    {  

    function set ColorScheme(value:String):void;

    }

This was working fine in AIR SDK 3.5, but when we upgraded to SDK 15, we get this error:

Error: Cannot override an interface method.  Method ColorScheme conflicts with a method in base interface ILoadable.

Is this a bug in the SDK? or is the new SDK more strict, not allowing a getter and setter being located in separate interfaces/classes?

TOPICS
Development

Views

110

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Oct 22, 2014 0

Have something to add?

Join the conversation