Update Docstring for exception and fix inconsistent code

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: BSON, Documentation
    • None
    • None
    • Fully Compatible
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      We found that BsonBinary#asUuid and BsonBinarySubType#isUuid are inconsistent. The latter allows legacy UUID to be categorized as UUID but the former throws an exception if the UUID is legacy.

      In addition, BsonBinary#asUuid does not have @throws in its Javadoc.

       

            Assignee:
            Ross Lawley
            Reporter:
            Chengxi Shi
            Almas Abdrazak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: