1 Reply Latest reply on Oct 10, 2016 9:55 AM by mkouba

    Working with huge class hierarchy

    jackdan

      Hello,

       

      I have a huge class hierarchy and the child class has to be decorated. There are no big methods in classes, but ca. 1800 methods in total. In ProxyFactory I get the exception

       

      java.lang.RuntimeException: java.lang.ClassFormatError: Invalid method Code length 66020 in class file com/my/AwesomeHugeObject$Proxy$_$$_WeldSubclass

       

      Are there any workarounds without  changing classes? It's not an option in my case

       

      BTW, Logging the exception doesn't work because of NPE on producer field in SyntheticClassBean

       

      Caused by: java.lang.NullPointerException

          at org.jboss.weld.bean.SyntheticClassBean.toString(SyntheticClassBean.java:67)

       

      Thanks!