[JIRA] Created: (RUBY2JAVA-6) multiple constructors with dedicated constructor_signature method

  • From: "automatthew (JIRA)" <jira-no-reply@kenai.com>
  • To: issues@ruby2java.kenai.com
  • Subject: [JIRA] Created: (RUBY2JAVA-6) multiple constructors with dedicated constructor_signature method
  • Date: Wed, 25 Nov 2009 22:31:17 +0000 (GMT+00:00)

multiple constructors with dedicated constructor_signature method
-----------------------------------------------------------------

                 Key: RUBY2JAVA-6
                 URL: http://kenai.com/jira/browse/RUBY2JAVA-6
             Project: ruby2java
          Issue Type: New Feature
            Reporter: automatthew
            Priority: Minor


Instead of using Smurf.signature(:initialize, ...), we could have a 
constructor_signature method that maps arbitrary methods and their signatures 
to Java constructors.

{code:none}
class MultiConstructors
  def string_init(string)
  end
  
  def integer_init(integer)
  end
  
  if defined? Ruby2Java
    constructor_signature :string_init, [java.lang.String] => Java::void
    constructor_signature :integer_init, [Java::int] => Java::void
  end
end
{code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://kenai.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[JIRA] Created: (RUBY2JAVA-6) multiple constructors with dedicated constructor_signature method

automatthew (JIRA) 11/25/2009
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120518.3c65429)
 
 
Close
loading
Please Confirm
Close