Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Safari
Language Found: English
Description
Steps to reproduce:
1. Create method with [Bindable("change")]
[Bindable("change")]
protected function method1(str:String):String
2. Create method with static property or method
package
{
public class StaticClass
{
public static function staticMethod(str:String):String
}
}
3. Call method, passing in static method or property in MXML Binding expression
<s:Label text="
{method2([StaticClass.staticMethod('blob')])}"/>
Actual Results:
Compiler generates bad code, concatenating "target" on the static class: "StaticClasstarget"
public class _StaticMXMLBindingBugWatcherSetupUtil
implements mx.binding.IWatcherSetupUtil2
{
public function setup(target:Object,
propertyGetter:Function,
staticPropertyGetter:Function,
bindings:Array,
watchers:Array):void
{
watchers[2] = new mx.binding.FunctionReturnWatcher("method2",
target,
function():Array
,
{ change: true },
[bindings[1]],
propertyGetter
);
}
}
Expected Results:
Should compile correctly
Workaround (if any):
Wrap access to static property or method in a local method.