monkey patching a java class fails sometimes
--------------------------------------------

                 Key: JRUBY-2376
                 URL: http://jira.codehaus.org/browse/JRUBY-2376
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1+
         Environment: Ubuntu
2.6.22
ruby 1.8.6 (2008-04-07 rev 6255) [amd64-jruby1.1RC3]
            Reporter: LeonB
         Attachments: testcase.tar.gz

When I first do:

module JavaTest
  include_package 'java.lang'
end

and then do:

class JavaTest::String
  def initialize(*args)
    super
  end
end

I get an argument error.

Doing:
class java.lang::String
  def initialize(*args)
    super
  end
end

works fine.
I included two test files (one good, one bad). You can also find both testcases 
here:
http://pastie.caboo.se/177514 (good)
http://pastie.caboo.se/177515 (bad)

-- 
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


Reply via email to