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

[classlib][luni] BitSet failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None

    Description

      Reported on the dev list by Aleksei Ivaschenko...

      I found that Jetty scenario recently started to fail because of bug in
      java.util.BitSet. This simple test behaves differently on Harmony and
      RI:

      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

      I've checked it on r547680 - the problem still exists.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tellison Tim Ellison
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: