Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
4.0.0
-
None
Description
public JSONCreateDatabaseMessage(String server, String servicePrincipal, Database db, Long timestamp) { this.server = server; this.servicePrincipal = servicePrincipal; this.db = db.getName(); this.timestamp = timestamp; try { this.dbJson = MessageBuilder.createDatabaseObjJson(db); } catch (TException ex) { throw new IllegalArgumentException("Could not serialize Function object", ex); } checkValid(); }
The exception message should say Database instead of Function. Also, the TestDbNotificationListener#createDatabase should be modified to make sure that the deserialized database object from the dbJson field matches with the original database object