Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-247

authenticate method declares throw MongoException but doesn't actually throw it

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5
    • Affects Version/s: 2.4
    • Component/s: API
    • Labels:
      None
    • Fully Compatible

      The current signature in DB is like
      public boolean authenticate(String username, char[] passwd ) throws MongoException

      however the only things thrown by the method are NPE & IllegalStateException. It is confusing to suppose the failure to authenticate could throw an exception while in fact it only returns a boolean

            Assignee:
            antoine Antoine Girbal
            Reporter:
            koen_serry Koen Serry
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: