Skip to content

Instantly share code, notes, and snippets.

@bb
Created February 17, 2010 23:48
Show Gist options
  • Save bb/307148 to your computer and use it in GitHub Desktop.
Save bb/307148 to your computer and use it in GitHub Desktop.
public class JRuby14StringSymbol {
public void sm(String bla) {
System.out.println("got " + bla);
}
}
require 'java'
`javac JRuby14StringSymbol.java` unless File.exist?("JRuby14StringSymbol.class")
java_import 'JRuby14StringSymbol'
# this should go fine
JRuby14StringSymbol.new.sm "teststring"
# this fails in jruby 1.3.1 but works on jruby 1.4.0
JRuby14StringSymbol.new.sm :testsymbol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment