Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Other (specify version)
Language Found: English
Description
applicationDomain.getDefinition() returns null for a valid class name if called from constructor of a class instantiated from static initializer.
Base class:
package
{
import flash.system.ApplicationDomain;
import flash.utils.getQualifiedClassName;
public class RegularAssClassBase
{
public var clazz:Class;
public function RegularAssClassBase()
{ var applicationDomain:ApplicationDomain = ApplicationDomain.currentDomain; var name:String = flash.utils.getQualifiedClassName(this); clazz = applicationDomain.getDefinition(name) as Class; } }
}
The subclass:
package
{
public class RegularAssClass extends RegularAssClassBase
{
public static var RAClass:RegularAssClass;
public function RegularAssClass()
{ super(); } }
}
Expected result: clazz variable set to Object, or Error thrown by constructor
Actual result: clazz is null, no errors