log messages changed as per the new java version