-
Bug
-
Resolution: Fixed
-
P3
-
18
-
b27
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278656 | 19 | Weijun Wang | P3 | Resolved | Fixed | team |
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.
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.
- backported by
-
JDK-8278656 Subject:callAs() not throwing NPE when action is null
-
- Resolved
-
- relates to
-
JDK-8275529 Alternate Subject.getSubject and doAs APIs that do not depend on Security Manager APIs
-
- Closed
-