Skip to content

Commit

Permalink
Merge pull request #38117 from zakkak/2024-01-10-fix-37862
Browse files Browse the repository at this point in the history
Keep static instance field and delete unused field in substitution
  • Loading branch information
zakkak authored Jan 10, 2024
2 parents 694caaa + 36197b5 commit 53f95bb
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.jayway.jsonpath.spi.mapper.JacksonMappingProvider;
import com.jayway.jsonpath.spi.mapper.MappingProvider;
import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.RecomputeFieldValue;
import com.oracle.svm.core.annotate.Delete;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

Expand Down Expand Up @@ -72,10 +72,8 @@ private static boolean isJson(Object o) {

@TargetClass(className = "com.jayway.jsonpath.internal.DefaultsImpl", onlyWith = HasStrimzi.class)
final class Target_com_jayway_jsonpath_internal_DefaultsImpl {

@RecomputeFieldValue(kind = RecomputeFieldValue.Kind.FromAlias)
@Alias
public static Target_com_jayway_jsonpath_internal_DefaultsImpl INSTANCE = new Target_com_jayway_jsonpath_internal_DefaultsImpl();
@Delete // Delete the no longer used mappingProvider
private MappingProvider mappingProvider;

@Substitute
public JsonProvider jsonProvider() {
Expand Down

0 comments on commit 53f95bb

Please sign in to comment.