Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 90945 invoked from network); 13 Sep 2007 05:36:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 05:36:55 -0000 Received: (qmail 74775 invoked by uid 500); 13 Sep 2007 05:36:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 74759 invoked by uid 500); 13 Sep 2007 05:36:48 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 74750 invoked by uid 99); 13 Sep 2007 05:36:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 22:36:48 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 05:38:32 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0FE2A714159 for ; Wed, 12 Sep 2007 22:36:32 -0700 (PDT) Message-ID: <7990170.1189661792055.JavaMail.jira@brutus> Date: Wed, 12 Sep 2007 22:36:32 -0700 (PDT) From: "Sean Qiu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-4781) [test] To serialize the range type of jruby into yaml form, harmony generate different sequence from RI In-Reply-To: <6992347.1189661612052.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-4781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12526990 ] Sean Qiu commented on HARMONY-4781: ----------------------------------- The issue is caused by a behavior difference. > [test] To serialize the range type of jruby into yaml form, harmony generate different sequence from RI > ------------------------------------------------------------------------------------------------------- > > Key: HARMONY-4781 > URL: https://issues.apache.org/jira/browse/HARMONY-4781 > Project: Harmony > Issue Type: Bug > Components: App-Oriented Bug Reports > Reporter: Sean Qiu > > Introduction: > yaml for ruby is similar to xml for java. So it is very important for jruby. > To serialize the range type of jruby into yaml form, harmony generate different sequence from RI > Range is a data type in ruby, it has a begin, end and a excl element to different from each other. > excl is true means it exclude the last data in the range. > Issue Description: > [1...3].to_yaml // get the range's yaml form > 1) Harmony will generate > --- !ruby/range > end: 100000 > excl: true > begin: 0 > 2) RI will generate > --- !ruby/range > begin: 0 > end: 100000 > excl: true > They are not equal in jruby. > Reason: > Range using HashMap to record the begin,end and excl element. > Their output order is the same in every Range, since their key value are always the same. > But the order is different in Harmony. > ===== RI ===== > Key= #, Hash= 562035919 > Key= #, Hash= 541525921 > Key= #, Hash= 542781097 > =====Harmony ===== > Key= #, Hash= 541525921 > Key= #, Hash= 542781097 > Key= #, Hash= 562035919 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.