Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #230: Disable file descriptor support in native-transport (not …
…supported by Java native implementation, see JEP-380)
- Loading branch information
43d0e86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am confused, JEP-380 was delivered with Java 16. So Java native support is available on modern Java, no?
43d0e86
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Native unixsockets are still supported when using Java 16+, but FileDescriptor usage will not work as the Java unix socket implementation does not support this feature.
The native JVM unix socket implementation only supports what is available on any JVM platform. This is the reason why e.g. abstract unixsockets are also not support because this is a Linux only feature and does not work on Windows. Same for socket pairs.
The JEP also says that they may implement more features in the future, but I'm currently not aware of any plans on extending the native unix socket implementation.
The purpose of change here is to show proper errors when trying to use FileDescriptors in combination with native transport implementation.