On Tue, 22 Sep 2026 12:46:09 GMT, Kevin Walls <[email protected]> wrote:
> Setting "jmx.remote.x.notification.buffer.size" to Integer.MAX_VALUE causes a > NegativeArraySizeException, as the value has 1 added before making a new > array. An Exception should be thrown, but an expected, checked Exception. > > The EnvHelp method getNotifBufferSize(env) should throw > IllegalArgumentException if we are near the limit. > > This should apply whether value is set from the System Property or env > setting. > > In the affected method in EnvHelp.java I've made some whitespace adjustments, > the key change is the check at the new line 290. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). Thanks Chris! ------------- PR Comment: https://git.openjdk.org/jdk/pull/33010#issuecomment-5792187067
