You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2018/12/20 14:00:09 UTC

[GitHub] mrchnk opened a new issue #67: static private variables initialization bug

mrchnk opened a new issue #67: static private variables initialization bug
URL: https://github.com/apache/royale-compiler/issues/67
 
 
   Inconsistent problems with initialized private static variables:
   
   ActionScript3 code (SomeClass.as):
   
   ```
   class SomeClass {
   
     private static var x = new AnotherClass();
   
     public function someMethod() {
       x.anotherMethod();
     }
   
   }
   ```
   
   Private accessor prefix for static variable `x` is missed in initialization code.
   Everywhere else that prefix is present.
   
   Javascript code (SomeClass.js):
   
   ```
   pac.kage.SomeClass.x = new pac.kage.AnotherClass();
   ```
   
   Expected javascript code  (SomeClass.js):
   
   ```
   pac.kage.SomeClass.pac_kage_SomeClass_x = new pac.kage.AnotherClass();
   ```
   
   I also created minimal example project to reproduce that issue at https://github.com/mrchnk/royale-compiler-problems/tree/master/private-static-variable

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services