Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 18
-
Fix Version/s: 18
-
Component/s: security-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b27
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278656 | 19 | Weijun Wang | P3 | Resolved | Fixed | team |
Description
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.
Attachments
Issue Links
- 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
-