Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Super-gross hack to catch Java 9's InaccessibleObjectException.
This new exception is raised by Jigsaw when you attempt to make accessible the inaccessible elements of a module's classes. Unfortunately, since the exception doesn't exist on Java 8, there's no way to catch it (in code that needs to build on Java 8) except for this hack. This allows `jruby -e 1` to run properly on Java 9. This fixes part of #4111.