RandomPatches (Forge)

RandomPatches (Forge)

56M Downloads

NoSuchMethodError in 1.14.4-1.21.2.0 only affects the client

kreezxil opened this issue ยท 5 comments

commented

Client

crash report

https://pastebin.com/fF1XXehm

latest log

https://pastebin.com/s3i8DTsU

java.lang.NoSuchMethodError: java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer;
	at com.therandomlabs.randompatches.client.WindowIconHandler.readImageToBuffer(WindowIconHandler.java:189) ~[?:1.14.4-1.21.2.0] {re:classloading}
	at com.therandomlabs.randompatches.client.WindowIconHandler.setWindowIcon(WindowIconHandler.java:88) ~[?:1.14.4-1.21.2.0] {re:classloading}
	at com.therandomlabs.randompatches.client.WindowIconHandler.setWindowIcon(WindowIconHandler.java:35) ~[?:1.14.4-1.21.2.0] {re:classloading}
commented

What the hell, that's a standard library method.

commented

I'm really not sure how, but somehow, java.nio.ByteBuffer.rewind()Ljava/nio/ByteBuffer; was being called instead of java.nio.ByteBuffer.rewind()Ljava/nio/Buffer;. Rebuilding the source code mysteriously fixes this.
EDIT: Turns out I was accidentally building with JDK 14. ๐Ÿคฆ

commented

This issue also happens in 1.15.2 :)

commented

Thanks for reporting this! It wasn't crashing for me for some reason. ๐Ÿ˜„

commented