You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/06/18 19:56:26 UTC
[jira] Updated: (HARMONY-4213) [classlib][luni] Jetty scenario
fails due to bug in java.util.BitSet
[ https://issues.apache.org/jira/browse/HARMONY-4213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mikhail Markov updated HARMONY-4213:
------------------------------------
Attachment: H-4213.patch
Here is the patch fixing the issue + regression test.
Fix description: andNot() method incorrectly set actualArrayLength to the minimum of actualArrayLength-es of 2 bitsets (the bitset on which the method is called and the bitset from the parameter), while it should be set to the maximum of them.
> [classlib][luni] Jetty scenario fails due to bug in java.util.BitSet
> --------------------------------------------------------------------
>
> Key: HARMONY-4213
> URL: https://issues.apache.org/jira/browse/HARMONY-4213
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Windows, Linux ia32
> Reporter: Ivaschenko, Aleksei V
> Attachments: H-4213.patch
>
>
> The following test behaves differently on Harmony and reference java implementation:
> import java.util.BitSet;
> public class BSTest {
> public static void main(String[] args) throws Exception {
> BitSet bs1 = new BitSet(256);
> BitSet bs2 = new BitSet(256);
> bs1.set('a');
> bs2.set('%');
> bs1.andNot(bs2);
> System.out.println("'a' allowed in bs1: " + bs1.get('a'));
> }
> }
> Harmony prints:
> 'a' allowed in bs1: false
> while RI prints:
> 'a' allowed in bs1: true
> This bug leads Jetty scenario to fail.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.