Hi there,
I have the following code in Eclipse (using the local Notes.jar):
try {
NotesThread.sinitThread(); //Init the tread
Session s = NotesFactory.createSession(null, usr, pwd);
// If we got here it worked
success = true;
} catch (Exception e) {
LOGGER.error(e);
} finally {
NotesThread.stermThread(); //Terminate the tread
}
The Eclipse IDE marks the line
Session s = NotesFactory.createSession(null, usr, pwd);
with an error claiming:
The method createSession(String, String, String) is ambiguous for the type NotesFactory
and won’t compile.
What can I do?