While fixing JBMDR-45, I saw this usage (MDR / AnnotationCreator):
| public static Object createAnnotation(ASTAnnotation node, Class<?>
annotation, ClassLoader cl) throws Exception
| {
| HashMap<String, Object> map = new HashMap<String, Object>();
| ClassLoader loader = (cl != null) ? cl :
Thread.currentThread().getContextClassLoader();
| if (annotation == null)
| {
| annotation = loader.loadClass(node.getIdentifier());
| }
|
My question is, why don't we rather take loader from annotation class if it's not
null, then use TCCL?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180567#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...