polishing

This fixes a Java6 backward compatible issue introduced in the JCache
implementation.

This commit also adds new representative tests.

Issue: SPR-9616
This commit is contained in:
Stephane Nicoll
2014-02-27 15:21:07 +01:00
parent f3b8a4103e
commit 7b5e9e8c8e
4 changed files with 124 additions and 14 deletions

View File

@@ -119,7 +119,7 @@ public abstract class BaseCacheOperation<A extends Annotation> implements JCache
private static List<CacheParameterDetail> initializeAllParameterDetails(Method method) {
List<CacheParameterDetail> result = new ArrayList<CacheParameterDetail>();
for (int i = 0; i < method.getParameterCount(); i++) {
for (int i = 0; i < method.getParameterTypes().length; i++) {
CacheParameterDetail detail = new CacheParameterDetail(method, i);
result.add(detail);
}