Created
February 17, 2010 23:48
-
-
Save bb/307148 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JRuby14StringSymbol { | |
public void sm(String bla) { | |
System.out.println("got " + bla); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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