Just this change so that people can continue to use this library on newer Java versions and Linux/macOS (presumably >= 9)!
Without this change you get this:
Exception in thread "main" java.lang.RuntimeException: org.newsclub.net.unix.AFUNIXSocketException: Cannot find method "setCreated" in java.net.Socket. Unsupported JVM?
at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:167)
at com.jagrosh.discordipc.entities.pipe.Pipe.openPipe(Pipe.java:67)
at com.jagrosh.discordipc.IPCClient.connect(IPCClient.java:116)
[...]
Caused by: org.newsclub.net.unix.AFUNIXSocketException: Cannot find method "setCreated" in java.net.Socket. Unsupported JVM?
at org.newsclub.net.unix.NativeUnixSocket.setCreated(Native Method)
at org.newsclub.net.unix.AFUNIXSocket.<init>(AFUNIXSocket.java:36)
at org.newsclub.net.unix.AFUNIXSocket.newInstance(AFUNIXSocket.java:54)
at com.jagrosh.discordipc.entities.pipe.UnixPipe.<init>(UnixPipe.java:45)
at com.jagrosh.discordipc.entities.pipe.Pipe.createPipe(Pipe.java:163)
... 3 more
I realise there are other prs which do this, but i created this as a fix on its own as the other prs seem to change other things which may not be desired. and yes i've tested it on both java 8 and 17!
Just this change so that people can continue to use this library on newer Java versions and Linux/macOS (presumably >= 9)!
Without this change you get this:
I realise there are other prs which do this, but i created this as a fix on its own as the other prs seem to change other things which may not be desired. and yes i've tested it on both java 8 and 17!