You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Freeman Yue Fang (Jira)" <ji...@apache.org> on 2021/09/30 13:40:00 UTC

[jira] [Commented] (CAMEL-16972) tests in camel-cdi failed with JDK17

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

Freeman Yue Fang commented on CAMEL-16972:
------------------------------------------

This is fixed  by weld 3.1.7.Final, tracked by 
https://issues.redhat.com/browse/WELD-2581

> tests in camel-cdi failed with JDK17
> ------------------------------------
>
>                 Key: CAMEL-16972
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16972
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-cdi
>            Reporter: Freeman Yue Fang
>            Assignee: Freeman Yue Fang
>            Priority: Major
>
> {code}
> Caused by: java.lang.IllegalAccessException: class org.jboss.weld.util.bytecode.ClassFileUtils cannot access a member of class java.lang.ClassLoader (in module java.base) with modifiers "protected final"
>         at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
>         at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:560)
>         at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:165)
>         at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:134)
>         ... 11 more
> {code}
> And this also affects camel-archetypes-cdi/camel-itest-cdi/camel-xml-jaxb-dsl-test-cdi



--
This message was sent by Atlassian Jira
(v8.3.4#803005)