harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Li Jing Qin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-6127) [java6][classlib][luni] BitSetTest failed because of the wrong constructor.
Date Wed, 25 Mar 2009 09:48:55 GMT
[java6][classlib][luni] BitSetTest failed because of the wrong constructor.
---------------------------------------------------------------------------

                 Key: HARMONY-6127
                 URL: https://issues.apache.org/jira/browse/HARMONY-6127
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: All
            Reporter: Li Jing Qin
            Priority: Minor


Method test_getI(), failed at line 426: assertEquals("Test1: Wrong size,", 0, bs.size()).
The reason is the difference between new BitSet() and new BitSet(0):
1. new BitSet() will create a long array with length 1
2. new BitSet(0) will create a long array with length 0

So the size() method will return 64 if we use new BitSet() or return 0 if we use new BitSet(0).

I have tested the test case against RI. RI also return 64 if we use new BitSet()

I found our java5 trunk use new BitSet(0) in the test case. I have no idea about why we change
this in the java6 branch.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message