Certain Ruby style methods are not generated from Java methods
--------------------------------------------------------------

                 Key: JRUBY-2776
                 URL: http://jira.codehaus.org/browse/JRUBY-2776
             Project: JRuby
          Issue Type: Bug
          Components: Java Integration
    Affects Versions: JRuby 1.1.3
         Environment: JRuby from source, OSX 10.5
            Reporter: David Koontz


irb(main):001:0> require 'java'
=> false
irb(main):002:0> combo_box = javax.swing.JComboBox.new
=> #<Java::JavaxSwing::JComboBox:0x92015d 
@java_object=javax.swing.JComboBox[,0,0,0x0,invalid,layout=apple.laf.CUIAquaComboBox$CUIAquaComboBoxLayoutManager,alignmentX=0.0,alignmentY=0.0,border=,flags=16777536,maximumSize=,minimumSize=,preferredSize=,isEditable=false,lightWeightPopupEnabled=true,maximumRowCount=8,selectedItemReminder=]>
irb(main):003:0> combo_box.editor.editor_component.document
=> #<Java::JavaxSwingText::PlainDocument:0x5c18ff @[EMAIL PROTECTED]>
irb(main):004:0> combo_box.editor.editor_component.document.methods.sort
=> ["==", "===", "=~", "__id__", "__jcreate!", "__jsend!", "__jtrap", 
"__send__", "addDocumentListener", "addUndoableEditListener", 
"add_document_listener", "add_undoable_edit_listener", 
"asynchronousLoadPriority", "asynchronousLoadPriority=", 
"asynchronous_load_priority", "asynchronous_load_priority=", "bidiRootElement", 
"bidi_root_element", "class", "clone", "com", "createPosition", 
"create_position", "defaultRootElement", "default_root_element", "display", 
"documentFilter", "documentFilter=", "documentListeners", "documentProperties", 
"documentProperties=", "document_filter", "document_filter=", 
"document_listeners", "document_properties", "document_properties=", "dump", 
"dup", "endPosition", "end_position", "enum_for", "eql?", "equal?", "equals", 
"extend", "freeze", "frozen?", "getAsynchronousLoadPriority", 
"getBidiRootElement", "getClass", "getDefaultRootElement", "getDocumentFilter", 
"getDocumentListeners", "getDocumentProperties", "getEndPosition", "getLength", 
"getListeners", "getParagraphElement", "getProperty", "getRootElements", 
"getStartPosition", "getText", "getUndoableEditListeners", 
"get_asynchronous_load_priority", "get_bidi_root_element", "get_class", 
"get_default_root_element", "get_document_filter", "get_document_listeners", 
"get_document_properties", "get_end_position", "get_length", "get_listeners", 
"get_paragraph_element", "get_property", "get_root_elements", 
"get_start_position", "get_text", "get_undoable_edit_listeners", 
"handle_different_imports", "hash", "hashCode", "hash_code", "id", 
"include_class", "insertString", "insert_string", "inspect", "instance_eval", 
"instance_exec", "instance_of?", "instance_variable_defined?", 
"instance_variable_get", "instance_variable_set", "instance_variables", 
"is_a?", "java", "java_class", "java_kind_of?", "java_object", "java_object=", 
"javax", "kind_of?", "length", "method", "methods", "nil?", "notify", 
"notifyAll", "notify_all", "object_id", "org", "paragraphElement", 
"paragraph_element", "private_methods", "protected_methods", "public_methods", 
"putProperty", "put_property", "readLock", "readUnlock", "read_lock", 
"read_unlock", "remove", "removeDocumentListener", 
"removeUndoableEditListener", "remove_document_listener", 
"remove_undoable_edit_listener", "render", "replace", "respond_to?", 
"rootElements", "root_elements", "send", "setAsynchronousLoadPriority", 
"setDocumentFilter", "setDocumentProperties", "set_asynchronous_load_priority", 
"set_document_filter", "set_document_properties", "singleton_methods", 
"startPosition", "start_position", "synchronized", "taint", "tainted?", "tap", 
"toString", "to_a", "to_enum", "to_java_object", "to_s", "to_string", "type", 
"undoableEditListeners", "undoable_edit_listeners", "untaint", "wait"]

The PlainDocument object has a getText method.  JRuby correctly generates a 
get_text method but doesn't generate a text method.  Every other methods in the 
getXXX form is correctly generated so it's something funky with the getText 
method.

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