com.newrelic.weave.violation.METHOD_EXACT_ABSTRACT_WEAVE.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-weaver Show documentation
Show all versions of newrelic-weaver Show documentation
The Weaver of the Java agent.
## METHOD_EXACT_ABSTRACT_WEAVE ##
###Description###
This violation was raised because the @Weave class is an Exact match but it is attempting to match on an abstract method.
###Example###
####Original Class####
```
public abstract class Example {
public abstract String abstractMethod();
}
```
####Bad####
```
@Weave
public class Example {
public String abstractMethod() {
}
}
```
----------
####Good####
```
@Weave(type = MatchType.BaseClass)
public class Example {
public String abstractMethod() {
}
}
```
© 2015 - 2024 Weber Informatics LLC | Privacy Policy