JDK-8231196 : DelegationPermission allows to create an instance that thows NPE on ::equals call
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.security
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-09-18
  • Updated: 2019-11-04
  • Resolved: 2019-10-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 14
14 b21Fixed
Related Reports
CSR :  
Sub Tasks
JDK-8233043 :  
Please see the following code sample

import javax.security.auth.kerberos.DelegationPermission;
        DelegationPermission d1 = new DelegationPermission("\"abc\"");
        DelegationPermission d2 = new DelegationPermission("\"abc\"");

Execution result would be:

Exception in thread "main" java.lang.NullPointerException
	at java.security.jgss/javax.security.auth.kerberos.DelegationPermission.equals(DelegationPermission.java:170)

URL: https://hg.openjdk.java.net/jdk/jdk/rev/b026a43e1809 User: weijun Date: 2019-10-29 01:35:28 +0000