JDK 18 | JDK 19 |
---|---|
18 b27Fixed | 19Fixed |
Relates :
|
It's observed that the Subject:callAs() method does not throw NPE as per spec. The spec mentions that : "Throws: NullPointerException - if action is null" For the piece of code : Subject.callAs(new Subject(),null); expected : NullPointerException. Actual behavior is : "java.util.concurrent.CompletionException" thrown instead.
|