Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346877 - Replace Class.forName with ClassLoader.loadClass
Summary: Replace Class.forName with ClassLoader.loadClass
Status: NEW
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xpath (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jesper Moller CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-23 11:19 EDT by David Carver CLA
Modified: 2011-05-23 11:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2011-05-23 11:19:32 EDT
Class.forName can hold classes in memory, and in general is not very friendly with OSGI.   We should analyze the code, and make any necessary changes to replace Class.forName usage with ClassLoader.loadClass instead.

http://www.osgi.org/blog/2011/05/what-you-should-know-about-class.html
http://www.javaworld.com/javaworld/javaqa/2003-03/01-qa-0314-forname.html