Kristof Mattei

Results 54 comments of Kristof Mattei

@headius Going from jruby 9.3.8.0 on openjdk@11 to jruby 9.4.2.0 on [openjdk@17 from brew](https://formulae.brew.sh/formula/openjdk@17) made the error show up for me. Never had it before. Now, it's not just a...

> Is JRuby really the only code that needs this? If not, it may be a good idea to ask OpenJDK for this? If so, why does JRuby needs this...

@arjantijms @lread JRuby tries to get the `fd` from a FileDescriptor which FileDescriptor doesn't expose, so use reflection to expose it: https://github.com/jruby/jruby/blob/0635bb6605838c48c426db9b3cf351716eed0a16/core/src/main/java/org/jruby/util/io/FilenoUtil.java#L271-L280

As to why this happens in other tools... seems like Java closed a loophole because they felt it was insecure... fine. But then they should offer APIs to match the...