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?
increased the language server per-thread stack size (Xss) to 8m so lombok can run
added eclipse access rule for com.sun.net.httpserver.* so the langauge server does not report them as errors to the debugger
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?