Skip to content

Commit

Permalink
Compiler: fixed issue where adding an id to a fx:Vector when using -…
Browse files Browse the repository at this point in the history
…keep compiler argument would result in a compiler error because the wrong class was imported in the generated code for the bindable property.

 getMultiName() in flex2.compiler.as3.binding.Info wasn't treating __AS3__.vec.Vector.<T> the same as __AS3__.vec:Vector.<T>, causing it to return the wrong namespace and class name.
  • Loading branch information
joshtynjala committed May 26, 2015
1 parent ffdb071 commit ab27364
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/compiler/src/java/flex2/compiler/as3/binding/Info.java
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,16 @@ public MultiName getMultiName(String name)

if (lastIndex < 0)
{
lastIndex = name.lastIndexOf(".");
// check for __AS3__.vec.Vector.<T>
int dotLessThanIndex = name.lastIndexOf(".<");
if (dotLessThanIndex != -1)
{
lastIndex = name.lastIndexOf(".", dotLessThanIndex - 1);
}
else
{
lastIndex = name.lastIndexOf(".");
}
}

if (lastIndex > 0)
Expand Down

0 comments on commit ab27364

Please sign in to comment.