-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project Loom does not play well with synchronized, so WDYT of adding support for "forbid use of synchronized"? #213
Comments
Good idea. But this would be an additional "feature" as it requires to not just parse for forbidden methods calls (invoke/invokespecial/invokestatic/getfield/putfield bytecode), but just look at attributes of methods.
|
Well,
On top of that, it would probably be great to include I've no idea if |
Kotlin must also use monitor enter or attributes on methods, unless they use locks internally. Groovy at least uses it. |
In pgjdbc, we replace all
synchronized
with explicitLock
: pgjdbc/pgjdbc#2635I wonder if I could use
forbidden-apis
to avoid moresynchronized
keywords creeping in the future.The text was updated successfully, but these errors were encountered: