Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7
-
None
Description
Currently ObjectCreateRule refers to the class by using the name, but this is highly undesirable.
1. "begin" uses the classloader that loaded Digester to resolve this class name, but this won't work in multi-classloader environment (like IDE, Maven, etc.)
2. "begin" invokes the loadClass method each time a new object is created. This is unnecessary performance hit.
The proper thing to do is to retain the Class object, and convert String to Class in the constructor.