Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-4213

[classlib][luni] Jetty scenario fails due to bug in java.util.BitSet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Classlib
    • None
    • Windows, Linux ia32

    Description

      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.

      Attachments

        1. H-4213.patch
          1 kB
          Mikhail Markov

        Issue Links

          Activity

            People

              tellison Tim Ellison
              aivasche Ivaschenko, Aleksei V
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: