flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mei Xue (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FLEX-34389) Different behaviour when binding to xmlroot.@attribute.toString().length and xmlroot.child.@attribute.toString().length
Date Mon, 30 Jun 2014 21:51:24 GMT

     [ https://issues.apache.org/jira/browse/FLEX-34389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mei Xue updated FLEX-34389:
---------------------------

    Attachment: keepFlagTestFlex4.mxml
                keepFlagTestFlex3.mxml

Attaching 2 applications to show this issue.

keepFlagTestFlex3 is for Flex 3.3, works without problems.

keepFlagTestFlex4 is for Flex 4.12.1 or 4.11.0, it throws runtime error.

> Different behaviour when binding to xmlroot.@attribute.toString().length and xmlroot.child.@attribute.toString().length
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-34389
>                 URL: https://issues.apache.org/jira/browse/FLEX-34389
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Compiler, Data Binding
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.1
>            Reporter: Mei Xue
>         Attachments: keepFlagTestFlex3.mxml, keepFlagTestFlex4.mxml
>
>
> In Flex 4 (4.12.1 and 4.11.0), binding to xmlroot.child.@attribute.toString().length
works if compile the application with keep-generated-actionscript flag. Otherwise, it gives
this runtime error (_testXml is the xml data and keepFlagTest is the application):
> ReferenceError: Error #1069: Property _testXml not found on keepFlagTest and there is
no default value.
> at _keepFlagTestWatcherSetupUtil/setup() ...
> Note that binding to xmlroot.child.@attribute.toString().length works in Flex 3 (3.3)
and binding to xmlroot.@attribute.toString().length works in both Flex 3 (3.3) and Flex 4
(4.12.1 and 4.11.0).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message