HomePhabricator

[SECP256K1] JNI tests : remove dependency to obsolete DatatypeConverter

Description

[SECP256K1] JNI tests : remove dependency to obsolete DatatypeConverter

Summary:
javax.xml.bind.DatatypeConverter is no longer part of the Java JDK
since version 9. This make it impossible to build and run the JNI test
suite with any Java > 8.
This diff replaces the 2 functions from DatatypeConverter with some
very simple ones. Performance is not really an issue here as it is test
only code.

Depends on D3834.

Test Plan:

./contrib/teamcity/build-secp256k1.sh # Tested with Java 8 and Java 11

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

Subscribers: jasonbcox

Differential Revision: https://reviews.bitcoinabc.org/D3835

Details

Provenance
FabienAuthored on Aug 9 2019, 10:00
FabienPushed on Sep 9 2019, 15:12
Reviewer
Restricted Project
Differential Revision
D3835: [SECP256K1] JNI tests : remove dependency to obsolete DatatypeConverter
Parents
rSTAGING0cc9cba736ea: [TRIVIAL] Cleanup the JNI test file
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/11160