In the ECKey.generate(int numbits), where the key size is provided as a parameter, if the key is not in [192, 224, 256, 384, 521], secp256r1 is used as the default curve without any indication. In this scenario, I feel a more appropriate action would be to throw an exception.
See line