[ 
https://issues.apache.org/jira/browse/FLEX-35116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15669313#comment-15669313
 ] 

Yishay Weiss edited comment on FLEX-35116 at 11/16/16 4:06 AM:
---------------------------------------------------------------

I was running this in FlashBuilder, so I got a run time error. I checked and it 
still compiles but gives an RTE. Anyway, as far as I'm concerned this is low 
priority.

Test App
https://paste.apache.org/rGs0

A class
https://paste.apache.org/MbAD



was (Author: yishayw):
I was running this in FlashBuilder, so I got a run time error. I checked ant it 
still compiles but gives an RTE. Anyway, as far as I'm concerned this is low 
priority.

Test App
https://paste.apache.org/rGs0

A class
https://paste.apache.org/MbAD


> private setter not accessible from class using this
> ---------------------------------------------------
>
>                 Key: FLEX-35116
>                 URL: https://issues.apache.org/jira/browse/FLEX-35116
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: FalconJX
>    Affects Versions: Apache FalconJX 0.6.0
>            Reporter: Yishay Weiss
>
> try this (see class A below)
> var a:A = new A();
> a.test()
> Expected result: No run time error
> Actual result: 
> ReferenceError: Error #1074: Illegal write to read-only property hello on A.
> package
> {
>     public class A
>     {
>         private var _hello:String;
>         public function A()
>         {
>         }
>         
>         public function get hello():String
>         {
>             return _hello;
>         }
>         private function set hello(value:String):void
>         {
>             _hello = value;
>             // do something
>         }
>         public function test():void
>         {
>             this.hello = "bye";
>         }
>     }
> }
> ----
> BTW, changing test() to do hello = "bye" works fine.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to