java.lang.ClassCastException: spoon.support.reflect.code.CtTryImpl cannot be cast to spoon.reflect.code.CtStatementList

GitHub | fedorov-s-n | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    ClassCastException when replacing CtBlock

    GitHub | 9 months ago | fedorov-s-n
    java.lang.ClassCastException: spoon.support.reflect.code.CtTryImpl cannot be cast to spoon.reflect.code.CtStatementList

    Root Cause Analysis

    1. java.lang.ClassCastException

      spoon.support.reflect.code.CtTryImpl cannot be cast to spoon.reflect.code.CtStatementList

      at spoon.support.reflect.code.CtStatementImpl.replace()
    2. spoon.support.reflect
      CtBlockImpl.replace
      1. spoon.support.reflect.code.CtStatementImpl.replace(CtStatementImpl.java:50)
      2. spoon.support.reflect.code.CtStatementImpl.replace(CtStatementImpl.java:275)
      3. spoon.support.reflect.code.CtBlockImpl.replace(CtBlockImpl.java:217)
      3 frames