Jun 13, 2010 12:32 AM
Compile-time error: Unexpected multiname type: 16 ...
-
Like (0)
I'm getting an oddball of a compile-time error which I cannot make head or tails of. Maybe somebody knows more about this? ...
This is the full error I'm getting:
Unexpected multiname type: 16
Unexpected multiname type: 16
D:\Work\Dev\Eclipse\com.hexagonstar.hexagon\swc\hexagonlib_flash.swc( com.hexagonstar.util:VectorUtil)
Error: Type was not found or was not a compile-time constant: .
I have a static util class named VectorUtil in a class library compiled as a SWC which i'm using in another project. A method I'm using from that class is the following one which generates a String-typed Vector from a provided Array ...
/**
* Creates a Vector of type String that is populated with strings from
* the specified array.
*
* @param array An array with string values.
* @param sort true if the vector should be sorted.
* @return A vector with strings.
*/
public static function createStringVector(array:Array,
sort:Boolean = false):Vector.<String>
{
var v:Vector.<String> = new Vector.<String>();
for each (var i:String in array)
{
v.push(i);
}
return sort ? v.sort(sortStrings) : v;
}
/**
* sortStrings
* @private
*/
private static function sortStrings(x:String, y:String):Number
{
if (x < y) return -1;
else if (x > y) return 1;
else return 0;
}
... this seems to be all allright but in the other project is a class which uses the createStringVector() method like this:
/**
* Parses a string made of IDs into a String Vector.
* The IDs in the string must be separated by commata.
* @private
*
* @param string The string to parse ID values from.
* @return A Vector with string values.
*/
protected static function parseIDString(string:String):Vector.<String>
{
if (string == null || string.length == 0) return null;
string = string.split(" ").join("");
return VectorUtil.createStringVector(string.split(","));
}
... The strange things is that if I compile not the swc but add the sources of my code lib to the compiler arguments it works! But if I specify the SWC to compile I get the above error.
Could be a bug. Simplify as much as you can and file a bug.
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).