equal
deleted
inserted
replaced
64 } |
64 } |
65 PrimitiveWrapperMap.replacePrimitivesWithWrappers(args); |
65 PrimitiveWrapperMap.replacePrimitivesWithWrappers(args); |
66 Signature signature = new Signature(type, name, args); |
66 Signature signature = new Signature(type, name, args); |
67 |
67 |
68 Method method = CACHE.get(signature); |
68 Method method = CACHE.get(signature); |
69 if (method != null) { |
69 boolean cached = method != null; |
|
70 if (cached && isPackageAccessible(method.getDeclaringClass())) { |
70 return method; |
71 return method; |
71 } |
72 } |
72 method = findAccessibleMethod(new MethodFinder(name, args).find(type.getMethods())); |
73 method = findAccessibleMethod(new MethodFinder(name, args).find(type.getMethods())); |
73 CACHE.put(signature, method); |
74 if (!cached) { |
|
75 CACHE.put(signature, method); |
|
76 } |
74 return method; |
77 return method; |
75 } |
78 } |
76 |
79 |
77 /** |
80 /** |
78 * Finds public non-static method |
81 * Finds public non-static method |