Skip to content

Instantly share code, notes, and snippets.

@jarib
Created December 9, 2008 02:18
Show Gist options
  • Save jarib/33726 to your computer and use it in GitHub Desktop.
Save jarib/33726 to your computer and use it in GitHub Desktop.
# `javac InterfaceA.java InterfaceB.java`
require "java"
require "InterfaceA"
require "InterfaceB"
class Foo
include Java::Foo::InterfaceA
include Java::Foo::InterfaceB
def a
p :a
end
def b
p :b
end
end
require "test/unit"
class TestLibraryFileName < Test::Unit::TestCase
def test_case_name
assert false
end
end
p $! # => #<TypeError: <=> requires JavaClass (NilClass given)>
p $@ # => ["foo.rb:12:in `append_features'", "foo.rb:12"]
package foo;
public interface InterfaceA {
void a();
}
package foo;
public interface InterfaceB {
void b();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment