stripe / stripe-java

Java library for the Stripe API.
https://stripe.com
MIT License
818 stars 359 forks source link

Fixes compilation and running from within VS Code #1902

Closed jar-stripe closed 6 days ago

jar-stripe commented 1 week ago

Why?

stripe-java uses Lombok to generate getters and setters for class properties, and recently it stopped working correctly when developing in vscode. The logs indicate a StackOverflowError when the language server is running Lombok. When troubleshooting that, I also noticed that using "restricted" httpserver imports in ThinEventWebhookHandler would cause a quiet error when trying to run any java files from vscode. These imports are technically "restricted" but are supported as exported APIs by the JDK team. All of these made it very difficult to debug or run java files from within vscode. This PR fixes these issues by increasing the language server stack size and explicitly defining an access rule for that vscode-java can use the httpserver imports.

What?