RFR: 8325949: Create an internal utility method for creating VarHandle instances [v2]

Per Minborg pminborg at openjdk.org
Tue Sep 17 07:27:04 UTC 2024


On Mon, 16 Sep 2024 10:19:26 GMT, Kasper Nielsen <duke at openjdk.org> wrote:

> This would actually be super useful in a public API. I use the same "trick" in some of my projects. Not because I care too much about the classfile size. But it is just a lot easier on the eye.

While I understand it would be convenient, there is a reason we have checked exceptions in the public APIs. Users can create similar utility methods in their projects if they want to "hide" the exceptions as you say. If you wish to add public methods anyhow, I think we should consider this under a separate issue.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20972#issuecomment-2354746829


More information about the core-libs-dev mailing list