Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[ji] should allow calling protected Java method with send #5310
... works on Java 8 but not on 10(+)
the first failure is fine (although if it would be marked as a protected instance method the failure would be different), setOutputStream is a protected Java method, the second would be more Ruby if it worked ... this all works on Java 8 - would argue the direct call working is not something JRuby encouraged or specified, nevertheless the second from should work everywhere - seems like we can not set it accessible (due JDK modularization?).
extracted from: #4851 (comment)
related - similar accessibility issue on Java 10: #5284