Ignore the synthetic constructor created by the agent (#111)
* Resolves #8532, ignored the synthetic constructor created by java agent Co-authored-by: qinjunjie <qinjunjie@jiuqi.com.cn>
This commit is contained in:
parent
00cf97e425
commit
f0c22f32dd
|
|
@ -11,6 +11,7 @@ Release Notes.
|
|||
* Support Druid Connection pool metrics collecting.
|
||||
* Support HikariCP Connection pool metrics collecting.
|
||||
* Support Dbcp2 Connection pool metrics collecting.
|
||||
* Ignore the synthetic constructor created by the agent in the Spring patch plugin.
|
||||
|
||||
#### Documentation
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ package org.apache.skywalking.apm.plugin.spring.patch;
|
|||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Method;
|
||||
import java.lang.reflect.Modifier;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
|
@ -72,7 +71,7 @@ public class AutowiredAnnotationProcessorInterceptor implements InstanceMethodsA
|
|||
Constructor<?>[] rawConstructor = beanClass.getDeclaredConstructors();
|
||||
List<Constructor<?>> candidateRawConstructors = new ArrayList<Constructor<?>>();
|
||||
for (Constructor<?> constructor : rawConstructor) {
|
||||
if (!Modifier.isPrivate(constructor.getModifiers())) {
|
||||
if (!constructor.isSynthetic()) {
|
||||
candidateRawConstructors.add(constructor);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue