Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String [v2]

2021-07-26 Thread Weijun Wang
On Mon, 26 Jul 2021 17:03:11 GMT, Sean Mullan wrote: >> Please review this fix to change the internal `X509CertImpl.getFingerprint` >> method to not return "" as a fingerprint if there is an error generating >> that fingerprint. Instead, `null` is now returned, and "" is no longer >> cached as

Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String [v2]

2021-07-26 Thread Sean Mullan
On Mon, 26 Jul 2021 14:12:48 GMT, Weijun Wang wrote: >> Not sure what you mean by inline. Do you mean use an anonymous inner class >> instead of a lambda for the `Function` argument to >> `ConcurrentHashMap.computeIfAbsent`? Note that `getFingerprintInternal` >> calls `this.getEncodedInternal`

Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String [v2]

2021-07-26 Thread Sean Mullan
> Please review this fix to change the internal `X509CertImpl.getFingerprint` > method to not return "" as a fingerprint if there is an error generating that > fingerprint. Instead, `null` is now returned, and "" is no longer cached as a > valid fingerprint. Although errors generating fingerprin

Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String

2021-07-26 Thread Weijun Wang
On Mon, 26 Jul 2021 13:37:39 GMT, Sean Mullan wrote: >> src/java.base/share/classes/sun/security/x509/X509CertImpl.java line 1924: >> >>> 1922: x -> getFingerprintInternal(x, debug)); >>> 1923: } >>> 1924: >> >> I'm a little confused by these methods. Can you inline >> `getFin

Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String

2021-07-26 Thread Sean Mullan
On Fri, 23 Jul 2021 22:18:26 GMT, Weijun Wang wrote: >> Please review this fix to change the internal `X509CertImpl.getFingerprint` >> method to not return "" as a fingerprint if there is an error generating >> that fingerprint. Instead, `null` is now returned, and "" is no longer >> cached as

Re: RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String

2021-07-23 Thread Weijun Wang
On Fri, 23 Jul 2021 17:16:26 GMT, Sean Mullan wrote: > Please review this fix to change the internal `X509CertImpl.getFingerprint` > method to not return "" as a fingerprint if there is an error generating that > fingerprint. Instead, `null` is now returned, and "" is no longer cached as a > v

RFR: 8270946: X509CertImpl.getFingerprint should not return the empty String

2021-07-23 Thread Sean Mullan
Please review this fix to change the internal `X509CertImpl.getFingerprint` method to not return "" as a fingerprint if there is an error generating that fingerprint. Instead, `null` is now returned, and "" is no longer cached as a valid fingerprint. Although errors generating fingerprints shoul