[DOCS-2062] JavaDoc vs tutorial mismatch regarding creation of MongoCredential Created: 09/Oct/13 Updated: 11/Jan/17 Resolved: 10/Oct/13 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 01112017-cleanup |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Bob Kuhar | Assignee: | Sam Kleinman (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 10 years, 18 weeks, 6 days ago |
| Description |
|
The Tutorial (http://docs.mongodb.org/ecosystem/tutorial/authenticate-with-java-driver/) shows MongoCredential created directly with new like new MongoCredential("user1", "password1".toCharArray(), "first"); but the JavaDocs show MongoCredential as having no constructor preferring, I guess, the static methods like public static MongoCredential createMongoCRCredential(String userName, String database, char[] password) I hate it when the examples don't work. |
| Comments |
| Comment by auto [ 10/Oct/13 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Update authenticate-with-java-driver.txt Fixed https://jira.mongodb.org/browse/DOCS-2062 |