score:0

Use a decompiler like the one at http://java.decompiler.free.fr/ to check the bytecode which the Scala compiler is generating. It may well be that it isn't doing what you think.

score:0

Too much time passed from the time you asked the question, but I'm gonna answer it maybe this is someone else problem,

This problem occurs when Spring is using JDK proxy. As in JDK proxy all the classes should have 'Interface' and your DivisionSelectOptionsCache class doesn't implement any interfaces then there is such a problem, Two solution for that:

  • Implement interface for all classes

  • Use CGLIB proxy

In order to use CGLib proxy, you should add the lib in the lib folder and use

<aop:aspectj-autoproxy proxy-target-class="true"/>

in application-context. The default value of proxy-target-class is false, which is JDK proxy.


Related Query

More Query from same tag