[1.9] Struct#members and Struct::members should return an Array of Symbols in 1.9 ---------------------------------------------------------------------------------
Key: JRUBY-6227 URL: https://jira.codehaus.org/browse/JRUBY-6227 Project: JRuby Issue Type: Bug Reporter: Benoit Daloze Assignee: Thomas E Enebo Attachments: 0001-Struct-members-and-Struct-members-should-return-an-A.patch Hello, This is my first patch to JRuby, so please be teach me where I'm wrong. I noticed Struct.members return an Array of Strings, even in 1.9. A patch is attached, it removes the RubySpec tag which was "hiding" this issue. I'm unsure if the duplication between members18 and members19 is fine, but as it is mostly a loop, it's probably fine. I used the members18 method in unmarshalFrom(), maybe using the 19 version would be faster since it does not require to convert members to ruby Strings? Hope it helps, Benoit Daloze -- This message is automatically generated by JIRA. 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