[ 
https://issues.apache.org/jira/browse/GERONIMO-5751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12981286#action_12981286
 ] 

Kevan Miller commented on GERONIMO-5751:
----------------------------------------

That would work. A bit ugly... But not sure I have anything better to offer...

An obvious change would be to remove the special annotation processing from 
TemporaryClassLoader:
{code}
       // Annotation classes must be loaded by the normal classloader
       if (isAnnotationClass(bytes)) {
           return super.loadClass(name, resolve);
       }
{code}

TemporaryClassLoader (and this checking) originated in OpenJPA. It looks like 
any change to this behavior (i.e. loading annotations in the 
TemporaryClassLoader, rather than the parent) is going to cause problems for 
OpenJPA. See https://issues.apache.org/jira/browse/OPENJPA-646. This also 
implies that our TemporaryClassLoader may need a few updates. Will create a 
separate Jira to track this.

> LinkageError running CDI TCK
> ----------------------------
>
>                 Key: GERONIMO-5751
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5751
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 3.0-M2
>            Reporter: Kevan Miller
>             Fix For: 3.0-M2
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to