Home > Uncategorized > [Bindable] public override

[Bindable] public override

I stumbled upon a compiler error when overriding a setter function with the Bindable metadata tag: “overriding a function that is not marked for override”

The answer is short and simple: use –[Bindable] public override– instead of –[Bindable] override public–
It may sound silly but the override actually has to come second in order for the compiler to interpret it properly in this particular situation.

Tags: ,
  1. February 1st, 2009 at 09:07 | #1

    T H A N K S V E R Y M U C H !

    You saved me!

  2. George
    May 21st, 2009 at 08:03 | #2

    Is true, i have been stuck running into this … I have now an idea ( ‘oop recomandation’ ) about why the help on flex recomend the “override public” form but i don`t think this is a + nor for as3 lang nor for future of flex :D . By the way, in gumbo is the same ?

  3. May 26th, 2009 at 16:11 | #3

    I did not try to reproduce this error with Gumbo. It’s on my TODO list.

  4. hdave
    October 21st, 2010 at 11:26 | #4

    OMG — i thought I was losing my mind. Thanks a ton. BTW- you need to rearrange the public/override on all superclasses in case you’re inheritance tree is more than 2 deep. Has anyone filed on JIRA for this?

  1. No trackbacks yet.