From owner-freebsd-java@freebsd.org Thu Jan 17 10:26:03 2019 Return-Path: Delivered-To: freebsd-java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 696FF148E078 for ; Thu, 17 Jan 2019 10:26:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 0164A867A6 for ; Thu, 17 Jan 2019 10:26:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B30C7148E072; Thu, 17 Jan 2019 10:26:02 +0000 (UTC) Delivered-To: java@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FEE0148E070 for ; Thu, 17 Jan 2019 10:26:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 24B4E867A4 for ; Thu, 17 Jan 2019 10:26:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 611BF113AB for ; Thu, 17 Jan 2019 10:26:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x0HAQ1xi007609 for ; Thu, 17 Jan 2019 10:26:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x0HAQ1hQ007608 for java@FreeBSD.org; Thu, 17 Jan 2019 10:26:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: java@FreeBSD.org Subject: [Bug 235018] java/openjdk8: adding millisecond resolution to get/setLastModified breaks many apps Date: Thu, 17 Jan 2019 10:26:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: java@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2019 10:26:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235018 --- Comment #2 from Michael Osipov --- This affects java.io.UnixFileSystem and probably java.io.File. Well, File#lastModified() has millisecond precision. Looking at the code in Java = 11 you see: > JNIEXPORT jlong JNICALL > Java_java_io_UnixFileSystem_getLastModifiedTime(JNIEnv *env, jobject this, > jobject file) > { > jlong rv =3D 0; >=20 > WITH_FIELD_PLATFORM_STRING(env, file, ids.path, path) { > struct stat64 sb; > if (stat64(path, &sb) =3D=3D 0) { > #if defined(_AIX) > rv =3D (jlong)sb.st_mtime * 1000; > rv +=3D (jlong)sb.st_mtime_n / 1000000; > #elif defined(MACOSX) > rv =3D (jlong)sb.st_mtimespec.tv_sec * 1000; > rv +=3D (jlong)sb.st_mtimespec.tv_nsec / 1000000; > #else > rv =3D (jlong)sb.st_mtim.tv_sec * 1000; > rv +=3D (jlong)sb.st_mtim.tv_nsec / 1000000; > #endif > } > } END_PLATFORM_STRING(env, path); > return rv; > } This is the default now. How does it break Tomcat, I don't get it? The RFC you are quoting is invali= d. Look into RFC 7231, chapter 7.1.1. --=20 You are receiving this mail because: You are the assignee for the bug.=