adi90i7 / as3-commons

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

bug in the reflect package class Type method forName crashes my springactionscript context. #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Hi,

The bug simply crashes my complex springactionscript config.

In the class Type, method forName there is an error which "looses" the 
application domain given as parameter in some cases.

try {
if (_cache[name]) {
result = _cache[name];
} else {
result = Type.forClass(org.as3commons.lang.ClassUtils.forNa me(name, 
applicationDomain));
}
}

should be

try {
if (_cache[name]) {
result = _cache[name];
} else {
result = Type.forClass(org.as3commons.lang.ClassUtils.forNa me(name, 
applicationDomain), applicationDomain);
}
}

note the last applicationdomain. If omitted the Type.forClass is looking things 
up in the wrong applicationDomain.

After adding this extra application domain my bug was solved.

cheers,

Arnoud

Original issue reported on code.google.com by arno...@gmail.com on 21 Mar 2010 at 12:56

GoogleCodeExporter commented 9 years ago
Fix is in the trunk, thanks a lot for this report!

Original comment by ihatelivelyids on 21 Mar 2010 at 2:46