sfleiter/cdi-interceptors

Primitive arrays as parameters or result cause Exception

Closed this issue · 0 comments

See the test LoggingInterceptorTest.testDefaultStringPrimitiveArrayParam().

The implementation of pretty printed arrays is part of #5 , here only the Exception should be fixed.

java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object;
    at com.github.sfleiter.cdi_interceptors.impl.StringTransformer.transform(StringTransformer.java:21)
    at com.github.sfleiter.cdi_interceptors.impl.LoggingInterceptor.getCallString(LoggingInterceptor.java:120)
    at com.github.sfleiter.cdi_interceptors.impl.LoggingInterceptor.loggingMethodInvoke(LoggingInterceptor.java:70)