Re: JavaDoc: NPE in java.net.http.HttpHeaders

2025-05-05 Thread Alan Bateman
On 05/05/2025 21:05, Steffen Nießing wrote: Hello, recently I've discovered that the JavaDoc of the instance methods of java.net.http.HttpHeaders lacks the throws declarations for NullPointerExceptions. The static creator method `of` contains such a declaration. So the snippet `HttpHeaders.of

Re: JavaDoc: NPE in java.net.http.HttpHeaders

2025-05-05 Thread Chen Liang
java.lang.classfile and the subpackages. Regards, Chen Liang From: core-libs-dev on behalf of Steffen Nießing Sent: Monday, May 5, 2025 3:05 PM To: core-libs-dev@openjdk.org Subject: JavaDoc: NPE in java.net.http.HttpHeaders Hello, recently I've discovered that the Ja

JavaDoc: NPE in java.net.http.HttpHeaders

2025-05-05 Thread Steffen Nießing
Hello, recently I've discovered that the JavaDoc of the instance methods of java.net.http.HttpHeaders lacks the throws declarations for NullPointerExceptions. The static creator method `of` contains such a declaration. So the snippet `HttpHeaders.of(null, null)` is documented to throw an NPE,