Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jruby-jars jruby-core should not include java/util/concurrent/ConcurrentHashMap.class #3555

donv opened this issue Dec 20, 2015 · 4 comments


Copy link

donv commented Dec 20, 2015

Starting with the inclusion of High Scale in JRuby 1.7.23, the jruby-jars gem includes java/util/concurrent/ConcurrentHashMap.class in the jruby-core jar.

This causes a security exception when an application tries to load the class outside the bootloader.

jruby-jars should not contain any packages in the java packages.

Copy link

the problem here is that it is not clear whether High Scale needs a patched ConcurrentHashMap.class to for its library - which I would assume or guessing from fact that they do pack into their jar. so first we need to find out whether this class is there on purpose or not. and maybe find out whether JRuby uses this feature which uses this ConcurrentHashMap

but in the long run I agree that jruby should not pack such classes, other places then ruboto will run into the problem sooner or later.

Copy link

kares commented Dec 21, 2015

wow - quite an intrusive surprise. for the record the high scale library was introduced only to use a concurrent IntHashMap alternative: NonBlockingHashMapLong ... which does not depend on ConcurrentHashMap directly.

from the README it seems the patched classes are optional (and thus not really needed to be packaged by JRuby):
p.s. they also have a patched java.util.Hashtable class

Copy link

kares commented Jan 2, 2016

this is now also resolved with #3560 (will be merged over to master)

@kares kares closed this as completed Jan 2, 2016
Copy link
Member Author

donv commented Jan 2, 2016


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants