[jboss-dev-forums] [JBoss AS7 Development] - Module Compatible Classloading Guide
David Bosschaert
do-not-reply at jboss.com
Wed Apr 13 15:59:53 EDT 2011
David Bosschaert [http://community.jboss.org/people/bosschaert] commented on the document
"Module Compatible Classloading Guide"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-16701#comment-6085
--------------------------------------------------
In addition to the above, Class.forName("org.foo.SomeClass") will cause issues in modular classloading environments if the defining classloader doesn't have classloading delegation set up to the module that's holding the "org.foo.SomeClass" class.
This problem is solved by using the Class.forName("org.foo.SomeClass", classLoader) overload instead.
--------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110413/f1212080/attachment.html
More information about the jboss-dev-forums
mailing list