We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A new annotation giving a warning when an instance is used as a monitor. As specified in PrimitiveObject documentation https://github.com/openjdk/valhalla/blob/lworld/src/java.base/share/classes/java/lang/PrimitiveObject.java#L51
PrimitiveObject
It could also be used to discourage users from using the object monitor directly (in the case where it is used internally)
The text was updated successfully, but these errors were encountered:
There's already @jdk.internal.ValueBased annotation that is used in JDK for this purpose.
@jdk.internal.ValueBased
Sorry, something went wrong.
As the name indicates, isn't it strictly internal?
Yes, currently it is. But this may change in the future, and we don't want to repeat JDK annotation.
No branches or pull requests
A new annotation giving a warning when an instance is used as a monitor. As specified in
PrimitiveObject
documentation https://github.com/openjdk/valhalla/blob/lworld/src/java.base/share/classes/java/lang/PrimitiveObject.java#L51It could also be used to discourage users from using the object monitor directly (in the case where it is used internally)
The text was updated successfully, but these errors were encountered: