ruby subclass of java public void method cannot return numeric values
---------------------------------------------------------------------
Key: JRUBY-4066
URL: http://jira.codehaus.org/browse/JRUBY-4066
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4.0RC1
Reporter: Aman Gupta
Assignee: Thomas E Enebo
$ ls
Makefile Test.java test.rb
$ cat Makefile
default:
javac Test.java
jruby test.rb
$ cat Test.java
public class Test {
public void func(){}
public void run(){ func(); }
}
$ cat test.rb
require 'java'
java_import 'Test'
class MyTest < Test
def func
1
end
end
t = MyTest.new
t.run
$ make
javac Test.java
jruby test.rb
test.rb:11: could not coerce Fixnum to void (TypeError)
make: *** [default] Error 1
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email