-
Bug
-
Resolution: Done
-
Major
-
jBPM 3.2.5 GA
-
None
Any class name provided as a String parameter to methods in ClassLoader must be a binary name as defined by the JLS (1). In particular, array syntax is not allowed, unless the system property sun.lang.ClassLoader.allowArraySyntax is set to true.
Sun recommends (2) replacing
myClassLoader.loadClass(className);
with
Class.forName(className,false,myClassLoader);
The first form has plenty of occurrences in the jBPM codebase. No bug has come to my attention with respect to array class loading. Anyhow, it is worthwhile to fix any potential problem in advance as other JBoss projects have (3).
(1) http://java.sun.com/javase/6/docs/api/java/lang/ClassLoader.html#name
(2) http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6516909
(3) https://jira.jboss.org/jira/browse/JBREM-659 * http://opensource.atlassian.com/projects/hibernate/browse/HHH-2990
- is related to
-
JBPM-2430 review classloading when deploying process
- Resolved