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] Commented: (HARMONY-6127) [java6][classlib][luni] BitSetTest failed because of the wrong constructor.
Date Mon, 15 Jun 2009 09:23:14 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12719481#action_12719481
] 

Li Jing Qin commented on HARMONY-6127:
--------------------------------------

Verified. Thanks Sean.

> [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
>            Assignee: Sean Qiu
>            Priority: Minor
>         Attachments: HARMONY-6127.diff
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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