XCC ContentSource.newSession Interface Change
- Last Updated: April 14, 2026
- 1 minute read
- MarkLogic Server
- Version 11.0
- Documentation
The XCC method ContentSource.newSession has been extended to include a new overload that accepts a char[] value for the password parameter, rather than a String, to enable more secure handling of passwords.
As a consequence of this change, passing null in the password parameter of newSession now results in a compile time error because the compiler cannot determine the correct overload without type information. Use a typecast to disambiguate your call.