Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 0.9.0, JRuby 0.9.1, JRuby 0.9.2, JRuby 0.9.8, JRuby 0.9.9, JRuby 1.0.0RC1, JRuby 1.0.0RC2, JRuby 1.0.0RC3
-
Fix Version/s: JRuby 1.0.1, JRuby 1.1b1
-
Component/s: Java Integration
-
Labels:None
-
Environment:SVN Trunk of jRuby on Linux, Sun JDK 1.5.0.07
-
Testcase included:yes
-
Number of attachments :
Description
Attached test case testClassWithInitialize.rb with attached java class org.jruby.javasupport.test.TestClassWithInitialize fails with the following:
test/testClassWithInitialize.rb:8:in `invoke': invokee not a java object (TypeError)
from ruby/testClassWithInitialize.rb:8:in `initialize'
from ruby/testClassWithInitialize.rb:8:in `new'
from ruby/testClassWithInitialize.rb:8
Name collision with ruby initialize()?
Yep. It is a collision with the initialize used by the Ruby class we use to create a proxy to the included Java class. We actually knew about this, but for some reason did not have a bug open on it.