If i have a custom classloader which, instead of delegating to its parent first, tries a search and load of the class itself will it be a violation of some stated/unstated rule?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Tomcat webapp classloader follows this model, so I imagine it works to at least some extent 🙂 From the Tomcat classloader documentation:
It sounds to me like you should be very cautious before you do this, but in certain cases it could be useful, if used carefully. You should document it thoroughly (particularly if this will be seen by third party developers) and make sure you include enough logging/diagnostics to help troubleshoot thorny problems.