suuhas / as3-commons

Automatically exported from code.google.com/p/as3-commons
0 stars 0 forks source link

Accessor's isReadable() and isWriteable() are incorrect #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. call isWriteable() for some read only property (with "get" function only)
What is the expected output? What do you see instead?
expected "false", got true

What version of the product are you using? On what operating system?
Latest from SVN as for 19/07/2009

Please provide any additional information below.
I've fixed with this patch
public function isReadable():Boolean
        {
            return (_access == AccessorAccess.READ_ONLY || _access ==
AccessorAccess.READ_WRITE) ? true : false;
        }

 public function isWriteable():Boolean
        {
            return (_access == AccessorAccess.WRITE_ONLY || _access ==
AccessorAccess.READ_WRITE) ? true : false;
        }

Original issue reported on code.google.com by andr...@gmail.com on 19 Jul 2009 at 12:24

GoogleCodeExporter commented 9 years ago

Original comment by christophe.herreman on 27 Jul 2009 at 9:47