Offhand, this seems reasonable.
Since you are an OpenJDK author, I've filed:
JDK-8014620: Signature.getAlogrithm return null in special case
and stocked it with your patch.
Thanks,
Brad
On 5/13/2013 9:46 PM, Deven You wrote:
Hi All,
I find in a special case: If you create a SignatureSpi service through
extending Signature rather than SignatureSpi, the returned signature
instance will lose its algortithm name.
Though the fix[1] is simple I think it's valuable. Could anyone take a look?
[1] http://cr.openjdk.java.net/~youdwei/ojdk-809/webrev/
<http://cr.openjdk.java.net/%7Eyoudwei/ojdk-809/webrev/>
Thanks a lot