[hibernate-issues] [Hibernate-JIRA] Created: (HHH-7272) Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Apr 24 12:38:50 EDT 2012


Have ClassLoaderServiceImpl use Class.forName rather than ClassLoader.loadClass
-------------------------------------------------------------------------------

                 Key: HHH-7272
                 URL: https://hibernate.onjira.com/browse/HHH-7272
             Project: Hibernate ORM
          Issue Type: Improvement
          Components: core
            Reporter: Steve Ebersole
            Assignee: Steve Ebersole


Specifically, the publically available form of ClassLoader.loadClass does not invoke static initializers defined for the class (it does not perform any of the "loading, linking or initializing" phases outlined in the Java Language Spec.  

Class.forName does as long as the 'initialize' parameter is set to true.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list