OK, this look pretty straight forward, except that I don't like where the code
resides. :-)
Doing this in ArrayInfoImpl.getType is where this is needed:
| if (annotatedElement == null)
| {
| try
| {
| annotatedElement = Class.forName(name, true,
componentType.getType().getClassLoader());
| }
| catch (Throwable t)
| {
| throw new UndeclaredThrowableException(t);
| }
| }
| return (Class<? extends Object>)annotatedElement;
|
But using Class.forName outside TypeInfoFactory (TIF) doesn't seem right.
Should I introduce new method on TIF?
If so, how to name it, params, ...
Perhaps this?
| TypeInfo getTypeInfo(String name, boolean initialize, ClassLoader cl) throws
ClassNotFoundException;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119077#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...