fix #823

Applied the fix from jruby/jruby-ossl#7  built jruby and used the build to run my broken test, which passed.