The problem lies here:
https://github.com/caelum/vraptor4/blob/master/vraptor-core/src/main/java/br/com/caelum/vraptor/cache/LRUCacheFactory.java#L28
You are using a raw type as the return type of a producer method although LRUCacheStore is a generic type. CDI has special rules concerning raw types, see http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#assignable_parameters for details. (Previous Weld versions did not implement these rules correctly) The right fix is to modify LRUCacheFactory to declare the following producer method signature:
public <K, V> LRUCacheStore<K, V> buildLRUCache(InjectionPoint ip)
|
As far as I can see this is already part of this commit: https://github.com/garcia-jj/vraptor4/commit/7e55c7b7243c822c7f0870b37bd583c254af717c
|