java.lang.ClassCastException: org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.SingleMemberAnnotation cannot be cast to org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.NormalAnnotation

Stack Overflow | Sander_M | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Roaster: How to provide a custom parameter value with an annotation?

    Stack Overflow | 8 months ago | Sander_M
    java.lang.ClassCastException: org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.SingleMemberAnnotation cannot be cast to org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.NormalAnnotation

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.SingleMemberAnnotation cannot be cast to org.jboss.forge.roaster._shade.org.eclipse.jdt.core.dom.NormalAnnotation

      at org.jboss.forge.roaster.model.impl.AnnotationImpl.setAnnotationValue()
    2. org.jboss.forge
      AnnotationImpl.setAnnotationValue
      1. org.jboss.forge.roaster.model.impl.AnnotationImpl.setAnnotationValue(AnnotationImpl.java:597)
      1 frame
    3. nl.sander.mieras
      Main.main
      1. nl.sander.mieras.CodeGenerator.generateClass(CodeGenerator.java:33)
      2. nl.sander.mieras.CodeGenerator.<init>(CodeGenerator.java:21)
      3. nl.sander.mieras.Main.main(Main.java:6)
      3 frames