flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yishay Weiss (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35116) private setter not accessible from class using this
Date Tue, 19 Jul 2016 11:54:20 GMT
Yishay Weiss created FLEX-35116:

             Summary: 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();

Expected result: No run time error

Actual result: 
ReferenceError: Error #1074: Illegal write to read-only property hello on A.

    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

View raw message