Comments (2)
It's true that one-nio uses JDK private APIs (not only in getPollMethodHandle
), but that's on purpose.
Well, if standard Java provided high performance networking, efficient serialization, and convenient off-heap memory management, I would of course prefer those. Moreover, the entire one-nio library would be unnecessary :)
It's a shame to use reflection hacks etc. Unfortunately, the "standard" way is often less efficient, or uglier, or both. It's 2021 outside, JDK version has increased from 6 to 16 since the appearance of one-nio, but there is still no official Java API for managing ByteBuffers more than 2GB and releasing them on demand, no straightforward way to create a fast custom serialization mechanism, and blocking SocketChannels still do not support timeouts and other OS-specific options ๐คฆ
Back to SelectableJavaSocket
...
Normally, JavaSocket should never appear in a production environment. It was designed as a simple fallback for a development environment, where NativeSocket is not supported. It was never meant to be a fully-featured implementation, it's only purpose is to allow development on macOS or Windows workstation.
Considering that JavaSocket is not for production use, and having a straghtforward workaround by way of --add-exports/--add-opens
, I think it's not worth investing in a fix.
BTW, antimodule agent automatically exports and opens everything, so that applications using private APIs work on JDK 16 even without a warning.
from one-nio.
I think it is awesome how one-nio is designed and implemented. You are preaching to the choir.
I am just rolling my eyes with some of the changes like making deny the default. Cost/benefit, in my view this creates more problems than it solves.
Thank you for the explanations and mentioning/creating anitmodule. Makes perfect sense to keep things the way they are and "workaround" with JVM settings.
from one-nio.
Related Issues (20)
- Ignore Content-Length when using chunked transfer encoding HOT 1
- java.lang.IllegalAccessError: java/util/concurrent/locks/ReentrantLock$Sync HOT 4
- SharedMaps: how use correctly HOT 1
- HttpClient extra whitespace break Transfer-Encoding chunked header HOT 7
- Utf-8 support for 4 byte chars HOT 2
- Java 17 is supported HOT 3
- ะัะฑ-ัะพะบะตัั HOT 1
- java.time bug HOT 2
- java.util.Locale support HOT 2
- BigInteger problem HOT 2
- quic and http3 plans HOT 6
- BigDecimal with new Java does not work any more HOT 4
- json skip serialize default primitive values HOT 2
- json deserialization numbers to string HOT 1
- Unable to connect to https://api.kucoin.com due to javax.net.ssl.SSLException: error:0A000410:SSL routines::sslv3 alert handshake failure
- one-nio version >=1.6.1 doesn't work with glibc 2.31 HOT 1
- reactive-streams HOT 1
- ClassNotFoundException is not serializable for Adoptium jdk 17 HOT 1
- how to get a user's ip on a server using RPC? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from one-nio.