Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-3714

BitString.createFromBytes reverses order of the bits in each byte

Rank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.22.0
    • core
    • None

    Description

      BitString.createFromBytes reverses the order of the bits in each byte. (Passing in 'a' I expect 01100001 but get 10000110.)

      BitString.createFromHexString works as expected, and appears to be the one everyone is using. The "fix" might be to just delete the broken method.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            julianhyde Julian Hyde
            apilloud Andrew Pilloud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment