You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Li Jing Qin (JIRA)" <ji...@apache.org> on 2009/03/25 10:48:55 UTC
[jira] Created: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
[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.
[jira] Resolved: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Li Jing Qin updated HARMONY-6127:
---------------------------------
Attachment: HARMONY-6127.diff
Would anyone try it?
> [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
> 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.
[jira] Assigned: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Qiu reassigned HARMONY-6127:
---------------------------------
Assignee: Sean Qiu
> [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.
[jira] Commented: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
Posted by "Li Jing Qin (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (HARMONY-6127) [java6][classlib][luni] BitSetTest
failed because of the wrong constructor.
Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12689087#action_12689087 ]
Sean Qiu commented on HARMONY-6127:
-----------------------------------
We can update the test case. It is a minor behavior difference of implementation.
Will commit soon.
> [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
> 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.