[jboss-jira] [JBoss JIRA] Created: (JBMDR-12) Use of ClassLoader is wrong in AnnotationCreator

Adrian Brock (JIRA) jira-events at lists.jboss.org
Thu Mar 13 10:43:58 EDT 2008


Use of ClassLoader is wrong in AnnotationCreator
------------------------------------------------

                 Key: JBMDR-12
                 URL: http://jira.jboss.com/jira/browse/JBMDR-12
             Project: JBoss MetaData Repository
          Issue Type: Bug
    Affects Versions: JBossMDR-2.0.0.Beta11
            Reporter: Adrian Brock
         Assigned To: Kabir Khan
             Fix For: JBossMDR-2.0.0.CR1


The use of the classloader in the AnnotationCreator is wrong.

Even when you pass in a classloader it still uses the Thread context classloader.

http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-mdr/trunk/src/main/org/jboss/annotation/factory/AnnotationCreator.java?revision=70318&view=markup

I've worked around the problem temporarily in the MC by setting the context classloader
before constructing annotations in the metadata, but I imagine this will cause problems elsewhere?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list