Hi,

Apologies, the formatting of my previous mail was lost. Re-sending it
in plain text.

I'd like to work on JDK-8392624 [1]. The example in the class description
of java.security.DrbgParameters.Capability does not compile.

Current:

    SecureRandom s = SecureRandom.getInstance("DRBG",
            DrbgParameters(-1, requested, null));
    Capability effective = ((DrbgParametes.Initiate) s.getParameters())
            .getCapability();

Proposed:

    SecureRandom s = SecureRandom.getInstance("DRBG",
            DrbgParameters.instantiation(-1, requested, null));
    Capability effective = ((DrbgParameters.Instantiation) s.getParameters())
            .getCapability();

The DrbgParameters constructor is private, so the static factory
instantiation(...) should be used, and the nested class is Instantiation,
not Initiate. I verified that the corrected snippet compiles and runs.
The change is javadoc-only (noreg-doc).

I have signed the OCA (GitHub: HuitaePark). As this would be my first
contribution, I would appreciate a sponsor, and would be grateful if
someone could assign the issue to me.

[1] https://bugs.openjdk.org/browse/JDK-8392624

Thanks,
Heetae Park

Reply via email to