Fix name overloading confusion.
references to entries below were using the wrong instance and thus not being cleaned properly.
MODIFY
dd-java-agent/src/main/java/com/datadoghq/agent/ClassLoaderIntegrationInjector.java
dd-java-agent/src/main/java/com/datadoghq/agent/ClassLoaderIntegrationInjector.java
@@ -15,8 +15,8 @@ public class ClassLoaderIntegrationInjector {
private final Map<ZipEntry, byte[]> entries;
private final Map<ClassLoader, Method> invocationPoints = Maps.newConcurrentMap();
- public ClassLoaderIntegrationInjector(final Map<ZipEntry, byte[]> entries) {
- this.entries = Maps.newHashMap(entries);
+ public ClassLoaderIntegrationInjector(final Map<ZipEntry, byte[]> allEntries) {
+ this.entries = Maps.newHashMap(allEntries);
for (final Iterator<Map.Entry<ZipEntry, byte[]>> it = entries.entrySet().iterator();
it.hasNext();
) {

Fix name overloading confusion.

references to entries below were using the wrong instance and thus not being cleaned properly.