[ 
https://issues.apache.org/jira/browse/OWB-970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14037539#comment-14037539
 ] 

Mark Struberg commented on OWB-970:
-----------------------------------

I'm not fully happy with this fix yet. 
This should actually be an inner(annotatedType.getJavaClass().getClassLoader(), 
applicationClassloader)

Take an EAR for example: when proxying a class from a WAR file we should use 
the ClassLoader of that class. 
But when proxying the EntityManager we must not use 
EntityManager.class.getClassLoader() as this would most probably be the shared 
ClassLoader the whole server. 

Due to our logic with having the name of the effective proxy in our Beans it 
only consumes some mem and does not have much other effects. We still should 
fix this.

> AbstractDecoratorInjectionTarget doesn't use right classloader to proxy 
> classes (uses container classloader)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: OWB-970
>                 URL: https://issues.apache.org/jira/browse/OWB-970
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: 1.2.1, 1.2.5
>            Reporter: Romain Manni-Bucau
>            Assignee: Romain Manni-Bucau
>             Fix For: 1.2.6, 2.0.0
>
>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to