Skip to content

Commit

Permalink
Attempt to hotfix issue #44
Browse files Browse the repository at this point in the history
  • Loading branch information
snowball77 committed Oct 1, 2015
1 parent 3c15c78 commit 277cd8f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@ public APIScopeAnalyzer(final AbstractInstAPIScope apiScope, final List<Class> a
for (final String containerName : apiScope.getMethodsToMatch().keySet()) {
try {
final List<Class<?>> classList = JInstrumentation.getInstance().getClassesByName(containerName);
if (classList.size() != 1) {
throw new InstrumentationException("Multiple classes found with name "+containerName);
}
// TODO: This assumes that multiple loaded classes are of the same version and hence, we can take any one
// as representative
final Class<?> containerClass = classList.get(0);
final List<MethodSignature> signatures = new ArrayList<>();
for (final String apiMethod : apiScope.getMethodsToMatch().get(containerName)) {
Expand Down

0 comments on commit 277cd8f

Please sign in to comment.