Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16958 Camel and JDK17
  3. CAMEL-16972

tests in camel-cdi failed with JDK17

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.15.0
    • camel-cdi
    • None
    • Unknown

    Description

      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
      
      

      And this also affects camel-archetypes-cdi/camel-itest-cdi/camel-xml-jaxb-dsl-test-cdi

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: