bernardladenthin / BitcoinAddressFinder

A high performance bitcoin address finder.
Apache License 2.0
170 stars 49 forks source link

Compatible to Java11 LTS (JEP 260) #8

Closed bernardladenthin closed 1 year ago

bernardladenthin commented 2 years ago

sun.misc.Cleaner could not be found. https://bugs.openjdk.java.net/browse/JDK-8148117 https://openjdk.java.net/jeps/260

bernardladenthin commented 2 years ago

There are many errors using Java11:

[ERROR] Failures:
[ERROR]   AddressToCoinTest.createAddressToCoin_publicKeyGiven_ToStringAndEqualsAndHashCode:52
Expected: is <AddressToCoin{hash160=73d6a3b07f488e12f9175716f95c5e18c265693f, coin=100000000}>
     but: was <AddressToCoin{hash160=73d6a3b07f488e12f9175716f95c5e18c265693f, coin=100000000}>
[ERROR]   ProducerJavaBrainwalletTest.produceKeys_filesConfigured_keysCreated:95
Expected: is <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@5e21e98f>
     but: was <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@51a9ad5e>
[ERROR]   ProducerJavaTest.produceKeys_GridNumBitsEqualsKeyMaxNumBits_noExceptionThrown:69
Expected: is <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@a1f72f5>
     but: was <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@4b2c5e02>
[ERROR]   ProducerJavaTest.produceKeys_KeyMaxNumBitsLowerThanGridNumBits_produceGridNumBitsNevertheless:92
Expected: is <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@4c5ae43b>
     but: was <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@264f218>
[ERROR]   ProducerJavaTest.produceKeys_SomeBitRanges_consumerContainsData:144
Expected: is <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@dc9876b>
     but: was <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@2f666ebb>
[ERROR]   PublicKeyBytesTest.createPublicKeyBytes_publicKeyGiven_ToStringAndEqualsAndHashCode:80
Expected: is <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@13df2a8c>
     but: was <net.ladenthin.bitcoinaddressfinder.PublicKeyBytes@1ebea008>
[ERROR] Errors:
[ERROR]   ByteBufferUtilityTest.freeByteBuffer_cleanerIsNull_noExceptionThrown:85 » IllegalAccess
[ERROR]   ByteBufferUtilityTest.freeByteBuffer_freeAGivenByteBufferGivenTwice_noExceptionThrown:125 » IllegalAccess
[ERROR]   ByteBufferUtilityTest.freeByteBuffer_freeAGivenByteBuffer_noExceptionThrown:101->getAddressFromDirectBuffer:234 » InaccessibleObject
[ERROR]   ProbeAddressesOpenCLTest.hashcatOpenClGrid:481 » IllegalAccess class net.laden...
[INFO]
[ERROR] Tests run: 254, Failures: 6, Errors: 4, Skipped: 2
bernardladenthin commented 1 year ago

Fixed