Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type.for.... methods only reference current ApplicationDomain, add optional param #6

Closed
GoogleCodeExporter opened this issue Mar 21, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Load in an external swf containing a class you wish to use. Wait for
Event.Complete.
2. Call Type.forName() with the name of a class contained in the external swf.
3. Class will not be found

4. WORKAROUND: on the loader, load with the LoaderContext.applicationDomain
property set to ApplicationDomain.currentDomain (merging class definitions).
5. Type.forName() returns the correct result.

What is the expected output? What do you see instead?
Throws and error, class not found

What version of the product are you using? On what operating system?
Latest from source

Please provide any additional information below.
Provide optional parameter to Type.for... methods of
(applicationDomain:ApplicationDomain = null) to allow accessing external
libraries.

Original issue reported on code.google.com by carrymass on 10 Aug 2009 at 3:19

@GoogleCodeExporter
Copy link
Author

If you use ClassUtils.forInstance() or ClassUtils.forName() in the Lang lib you 
can
pass an optional applicationDomain to the methods, the resulting Class object 
can
then be used with out problems by the Type.forClass() method.

Original comment by ihatelivelyids on 1 Sep 2009 at 4:03

@GoogleCodeExporter
Copy link
Author

Since my last comment all the for* methods of the Type class now have an 
optional
ApplicationDomain argument

Original comment by ihatelivelyids on 5 Mar 2010 at 11:50

@GoogleCodeExporter
Copy link
Author

Changed status to fixed

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant