Skip to content

Current "main" fails 2 tests in jcajce.provider.test #2228

@mouse07410

Description

@mouse07410

MacOS Tahoe 26.2

$(java_home -v 21)/bin/java -version
openjdk version "21.0.6" 2025-01-21 LTS
OpenJDK Runtime Environment Zulu21.40+17-CA (build 21.0.6+7-LTS)
OpenJDK 64-Bit Server VM Zulu21.40+17-CA (build 21.0.6+7-LTS, mixed mode, sharing)

Errors:

testMixedCompositionWithNull | Error | Cannot invoke "Object.hashCode()" because "key" is null

java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null
at java.base/java.util.Hashtable.get(Hashtable.java:381)
at org.bouncycastle.asn1.x9.X962NamedCurves.getByOIDLazy(Unknown Source)
at org.bouncycastle.asn1.x9.X962NamedCurves.getByOID(Unknown Source)
at org.bouncycastle.asn1.x9.ECNamedCurveTable.getByOID(Unknown Source)
at org.bouncycastle.jcajce.CompositePrivateKey.getEncoded(Unknown Source)
at org.bouncycastle.jcajce.provider.test.CompositeSignaturesTest.testMixedCompositionWithNull(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)

and


testMixedComposition | Error | Cannot invoke "Object.hashCode()" because "key" is null

java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "key" is null
at java.base/java.util.Hashtable.get(Hashtable.java:381)
at org.bouncycastle.asn1.x9.X962NamedCurves.getByOIDLazy(Unknown Source)
at org.bouncycastle.asn1.x9.X962NamedCurves.getByOID(Unknown Source)
at org.bouncycastle.asn1.x9.ECNamedCurveTable.getByOID(Unknown Source)
at org.bouncycastle.jcajce.CompositePrivateKey.getEncoded(Unknown Source)
at org.bouncycastle.jcajce.provider.test.CompositeSignaturesTest.testMixedComposition(Unknown Source)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions