Hi, I'm facing a strange issue. I'm upgrading our ...
# help
r
Hi, I'm facing a strange issue. I'm upgrading our project to Java 21, SpringBoot 3.5 and gradle 8.14. I have set to use last stable version of wiremock : org.wiremockwiremock standalone3.13.1 I have a class that extends StringValuePattern:
*import* com.fasterxml.jackson.annotation.JsonProperty;
*import* com.github.tomakehurst.wiremock.matching.MatchResult;
*import* com.github.tomakehurst.wiremock.matching.StringValuePattern;
import
*static* com.github.tomakehurst.wiremock.common.Strings._normalisedLevenshteinDistance_;
public
*class* EqualVinOutInAnyOrderPattern *extends* StringValuePattern {
*public* EqualVinOutInAnyOrderPattern(@JsonProperty("equalVinOutInAnyOrder") String expectedValue) {
*super*(expectedValue);
} @Override
*public* MatchResult match(String actual) {
return
*new* MatchResult() {
...
}
}
This class is now failing when the constructor calls the getName() When I debug I well see a
this.getClass().getDeclaredConstructors()[0].getParameterAnnotations()[0][0] instanceof JsonProperty
with the correct value, but the execution still goes to the throw Exception. Does anybody have the same issue or have an idea of what happens ?
l
Hey, sorry for the delay. Are you still having this issue ?