java.lang.ClassCastException: net.bytebuddy.description.annotation.AnnotationDescription[] cannot be cast to net.bytebuddy.description.annotation.AnnotationDescription

GitHub | tmurakami | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [Android] ClassCastException: AnnotationDescription[] cannot be cast to AnnotationDescription

    GitHub | 8 months ago | tmurakami
    java.lang.ClassCastException: net.bytebuddy.description.annotation.AnnotationDescription[] cannot be cast to net.bytebuddy.description.annotation.AnnotationDescription

    Root Cause Analysis

    1. java.lang.ClassCastException

      net.bytebuddy.description.annotation.AnnotationDescription[] cannot be cast to net.bytebuddy.description.annotation.AnnotationDescription

      at net.bytebuddy.implementation.attribute.AnnotationAppender$Default.apply()
    2. net.bytebuddy.implementation
      MethodAttributeAppender$Compound.apply
      1. net.bytebuddy.implementation.attribute.AnnotationAppender$Default.apply(AnnotationAppender.java:312)
      2. net.bytebuddy.implementation.attribute.AnnotationAppender$Default.handle(AnnotationAppender.java:296)
      3. net.bytebuddy.implementation.attribute.AnnotationAppender$Default.doAppend(AnnotationAppender.java:355)
      4. net.bytebuddy.implementation.attribute.AnnotationAppender$Default.append(AnnotationAppender.java:334)
      5. net.bytebuddy.implementation.attribute.MethodAttributeAppender$Explicit.apply(MethodAttributeAppender.java:301)
      6. net.bytebuddy.implementation.attribute.MethodAttributeAppender$Compound.apply(MethodAttributeAppender.java:490)
      6 frames
    3. Byte Buddy (with dependencies)
      DynamicType$Builder$AbstractBase$Delegator.make
      1. net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod$WithBody.applyBody(TypeWriter.java:582)
      2. net.bytebuddy.dynamic.scaffold.TypeWriter$MethodPool$Record$ForDefinedMethod.apply(TypeWriter.java:518)
      3. net.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForCreation.create(TypeWriter.java:3802)
      4. net.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:1618)
      5. net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:172)
      6. net.bytebuddy.dynamic.scaffold.subclass.SubclassDynamicTypeBuilder.make(SubclassDynamicTypeBuilder.java:153)
      7. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase.make(DynamicType.java:2568)
      8. net.bytebuddy.dynamic.DynamicType$Builder$AbstractBase$Delegator.make(DynamicType.java:2670)
      8 frames
    4. com.example.myapp
      MyTest.testAnnotate
      1. com.example.myapp.MyTest.testAnnotate(MyTest.java:43)
      1 frame
    5. Android Platform
      Instrumentation$InstrumentationThread.run
      1. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:198)
      2. android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:183)
      3. android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:560)
      4. android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1932)
      4 frames