And that was some JVM specifics for you... In FragmentInvocationHandler, we clean up the stack trace for users to not see all the internals. I thought it might be a good idea to unwrap UndeclaredThrowableException at the same time. The unwrapped exception is he :IllegalAccessException, and it won't allow that to change during the method invocation. On Fri, Jun 9, 2017 at 2:18 PM, Niclas Hedhman wrote: > > > This must be one of the funniest exceptions I have ever got... Doubt many > people find it funny, though. > > > java.lang.ClassCastException: java.lang.IllegalAccessException cannot be > cast to java.lang.Error > > And only in this project will something like surface. > > > Cheers > -- > Niclas Hedhman, Software Developer > http://polygene.apache.org - New Energy for Java > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java