RFR: 8305157: The java.util.Arrays class should be declared final

Roger Riggs rriggs at openjdk.org
Wed Mar 29 16:19:30 UTC 2023


On Wed, 29 Mar 2023 16:09:18 GMT, Raffaello Giulietti <rgiulietti at 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


More information about the core-libs-dev mailing list