morvans / as3-commons

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

Vector class name truncated #133

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Example

ByteCode analyze of a class that contains:
internal static const RLELIBS:Vector.<String> = new Vector.<String>; 
fails in ByteCodeConstant.type, because the package lang has truncated the 
class name when it is a Vector.

Correction

Class org.as3commons.lang.ClassUtils, method 
getClassParameterFromFullyQualifiedName
change
var len:int = (fullName.length - startIdx) - 1;
by
var len:int = (fullName.length - startIdx); 

Correct the bug without side effect (ByteCode analyze tested on large projects)

Thanks !

Original issue reported on code.google.com by david.la...@gmail.com on 18 Oct 2012 at 6:53