On Wed, 29 Mar 2023 16:09:18 GMT, Raffaello Giulietti <rgiulie...@openjdk.org> 
wrote:

> 



> Would it make sense to throw an `AssertionError` in the constructor? Just in 
> case...

It hardly seems worth the bytecode; the constructor could only be invoked by 
breaking in using reflection and the result would be an instance with no 
instance methods.

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

PR Comment: https://git.openjdk.org/jdk/pull/13221#issuecomment-1488911733

Reply via email to