You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sean Qiu (JIRA)" <ji...@apache.org> on 2009/03/25 12:40:52 UTC
[jira] Resolved: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
[ https://issues.apache.org/jira/browse/HARMONY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Qiu resolved HARMONY-6127.
-------------------------------
Resolution: Fixed
Committed revision 758230
Could you please try it? Thanks for the patch.
> [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.