Skip to content

Instantly share code, notes, and snippets.

@michaeltwofish
Created August 13, 2010 01:51
Show Gist options
  • Save michaeltwofish/522107 to your computer and use it in GitHub Desktop.
Save michaeltwofish/522107 to your computer and use it in GitHub Desktop.
require 'java'
java_import 'weka.experiment.CrossValidationResultProducer'
java_import 'java.beans.PropertyDescriptor'
# Java was
# new PropertyDescriptor("splitEvaluator", CrossValidationResultProducer.class)
PropertyDescriptor.new("splitEvaluator", CrossValidationResultProducer)
# Produces
# no constructor with arguments matching [class org.jruby.RubyString, class org.jruby.RubyClass] on object #<Java::JavaBeans::PropertyDescriptor:0x86f847> (NameError)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment