the following snippet works nice in jruby-1.5.6 and this allows to use
such classes in libraries (hibernate) which load the classes from the
context_classloader. with 1.6.0 the classname changed from ruby.A to
rubyobj.A and cannot be found with the context classloader. bug or
feature ? how can I achieve the same functionality with 1.6.0 again ?
require ‘jruby/core_ext’
class A; end
#make a java class out of the ruby class
AA = A.become_java!
p AA.get_name
load the java class from the classloader
cl = java.lang.Thread.current_thread.getContextClassLoader
p cl.load_class AA.get_name
thanx in advance, Kristian