RFR: 8296741: Illegal X400Address and EDIPartyName should not be created [v2]

Weijun Wang weijun at openjdk.org
Thu Nov 10 02:36:21 UTC 2022


On Thu, 10 Nov 2022 02:14:02 GMT, Xue-Lei Andrew Fan <xuelei at openjdk.org> wrote:

>> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   add test
>>   
>>   only in patch2:
>>   unchanged:
>
> src/java.base/share/classes/sun/security/x509/EDIPartyName.java line 66:
> 
>> 64:     public EDIPartyName(String assignerName, String partyName) {
>> 65:         this.assigner = assignerName;
>> 66:         this.party = Objects.requireNonNull(partyName);
> 
> It looks like this constructor is not used.  Is if safe to remove it?

It's not used inside JDK. But for completeness it sounds there should be a way to create one with an assigner.

-------------

PR: https://git.openjdk.org/jdk/pull/11071



More information about the security-dev mailing list