mkarg opened a new pull request #44: Fix for [JOHNZON-276]: StackOverflowError URL: https://github.com/apache/johnzon/pull/44 The following code produces a StackOverflowError: ```java @JsonVisibility(DefaultPropertyVisibilityStrategy.class) public final class C { @JsonProperty private boolean foo; } ``` The problem is caused by the fact that this strategy tries to compare "this" by "==" with a new instance of itself, which certainly fails, because the new copy is definitively a different reference than the one currently executed and instantiated due to the class annotation. The fix is simple: Adding an equals method just comparing the class type (as the strategy has no members other than a cache), and calling that instead of "==".
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services