]> git.bitcoin.ninja Git - ldk-java/commit
Avoid use of covariant return type change fns fixing backwards compat v0.0.98.1
authorMatt Corallo <git@bluematt.me>
Sat, 12 Jun 2021 16:51:02 +0000 (16:51 +0000)
committerMatt Corallo <git@bluematt.me>
Sat, 12 Jun 2021 16:59:19 +0000 (16:59 +0000)
commit7bd26ccdf638a248e8d45ab0feaa954c20c59f11
tree3149e5e0e533c40059c1ed2f1c4e726f5e7a9c39
parent4adc27e9bf581b4f5edd148e12d7c344381d0f46
Avoid use of covariant return type change fns fixing backwards compat

See, eg, https://jira.mongodb.org/browse/JAVA-2559. This results
in errors like the following:

```
2021-06-12 17:15:58.893 13340-13412/com.example.rnldk E/AndroidRuntime: FATAL EXCEPTION: NioPeerHandler NIO Thread
    Process: com.example.rnldk, PID: 13340
    java.lang.NoSuchMethodError: No virtual method clear()Ljava/nio/ByteBuffer; in class Ljava/nio/ByteBuffer; or its super classes (declaration of 'java.nio.ByteBuffer' appears in /system/framework/core-oj.jar)
        at org.ldk.batteries.NioPeerHandler.lambda$new$0$NioPeerHandler(NioPeerHandler.java:185)
        at org.ldk.batteries.-$$Lambda$NioPeerHandler$f9v_DKRzmlYYXidLTlb3OtA-tVY.run(Unknown Source:2)
        at java.lang.Thread.run(Thread.java:764)
```
src/main/java/org/ldk/batteries/NioPeerHandler.java