Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.5 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1.Add a custom metadata to a class method, ensure that its added to -keep-as3-metadata+=
2. use flash.utils.describeType to reflect the class
3. try to find the method by doing xml.methods.metadata.(@name==
)
public class TestClass{
[External]
public function foo():void{
}
}
4.5 describeType
<method name="ext_connectToStream" declaredBy="com.conceptualideas.chat.delegators::ViewerDelegator" returnType="void">
<parameter index="1" type="String" optional="false"/>
<metadata name="External"/>
<metadata name="__go_to_definition_help">
<arg key="pos" value="1861"/>
</metadata>
</method>
for each (var method:XML in methods)
3.5 describeType
<method name="ext_connectToStream" declaredBy="com.conceptualideas.chat.delegators::ViewerDelegator" returnType="void">
<parameter index="1" type="String" optional="false"/>
<metadata name="External"/>
</method>
for each (var method:XML in methods)
Actual Results:
Return the node found
Expected Results:
output the found metadata node
Workaround (if any):
method.metadata.(@name =="External").@name == "External"