Mixing in Java class resets visibility of new method
----------------------------------------------------
Key: JRUBY-1283
URL: http://jira.codehaus.org/browse/JRUBY-1283
Project: JRuby
Issue Type: Bug
Components: Java Integration
Affects Versions: JRuby 1.x
Environment: OSX 10.4.10, JRuby from source
Reporter: David Koontz
If you mix in a Java class, new is reset to public.
require 'java'
include_class 'java.awt.event.MouseListener'
class Base
private_class_method :new
end
puts Base.new #=> private method `new' called for Base:Class (NoMethodError)
===================
require 'java'
include_class 'java.awt.event.MouseListener'
class Base
private_class_method :new
include MouseListener
end
puts Base.new #=> $Proxy4
=====
This only appears to happen for new, if I have other class methods that I mark
private with private_class_method they remain private after including the Java
class.
--
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