That looks like it probably needs a compiler fix.
But it also seems avoidable for now.
Because they are vars and not methods or accessors that are overridden,
can't you just avoid using super?



On Wed, Sep 16, 2020 at 10:20 AM Hugo Ferreira <[email protected]>
wrote:

> Example 1, using super to use the base base variable
>
> public class MyBaseClass
> {
>     protected var myProtectedVar:String;
> }
>
> public class MyExtendedClass
> {
>     public function MyExtendedClass
>     {
>         super.myProtecedVar = "Hello World"; // this will throw an JS error
> at runtime
>     }
> }
>
> Example 2, using super at an event
>
> call a remote AMF service to a resultHandler event:
>
> private function resultHandler(event:ResultEvent):void
> {
>     super.entities = event.data as ArrayList; // this will throw an
> internal JS error that will stop the result event and fire the AMF fault
> event
> }
>

Reply via email to