From owner-freebsd-java@freebsd.org Sun Jan 6 19:09:32 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 787651497B70 for ; Sun, 6 Jan 2019 19:09:32 +0000 (UTC) (envelope-from thgude@googlemail.com) 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 D8C028AA99 for ; Sun, 6 Jan 2019 19:09:31 +0000 (UTC) (envelope-from thgude@googlemail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 98F481497B6F; Sun, 6 Jan 2019 19:09:31 +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 765C51497B6E for ; Sun, 6 Jan 2019 19:09:31 +0000 (UTC) (envelope-from thgude@googlemail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3455F8AA98 for ; Sun, 6 Jan 2019 19:09:30 +0000 (UTC) (envelope-from thgude@googlemail.com) Received: by mail-wr1-x42e.google.com with SMTP id l9so41109605wrt.13 for ; Sun, 06 Jan 2019 11:09:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=LtBGB+7cyqQAOME+g3BPfIug6vTV3Abnw8YeLhWfzsE=; b=bCYaWuHDlsHaT1SCILuqaSV8AMy69EtSx5W4iHvwMLgwatCDY3AZOLI6DJgN81PmFy Xi1E/uHm2oJr/a3ekHO9kClhikSuCZfyb3V6ywqyR/SnO6BP8aS7bA37RpnIzgWxmyzz 8jmi6Gmt1JkKU/B0gxWxinS74Y/LKbFEHcTfmzA1XGFlsf/1LURy1kbz4KLSzcgE5AbP cZGpaQnx/ZOUWiKFCgB28GYxZjbY3/VvHV+SizPfADE6MYfEsd6zrH+qQbdnmVl5OxDY qQmxJzrlx/+p0bJTHcbFwXVdCe7G9fDC4VkwEQYnUDcv/hQyGr61kDng2IAl8YsRZTxO GYvQ== X-Gm-Message-State: AJcUukchd3HsDwPMLYtfomLkDWIq/L8iY6Ylbx3oGFtxk7d0wGxAl9PH adMdLR2ECpdUFhVazrs= X-Google-Smtp-Source: ALg8bN5luD5vNv3kGGv/GTGQNQ6K6awOoP2s5onRcFlo3ddTuQ98ckG0LluwKGtWnxEv+Ko8dXvD+Q== X-Received: by 2002:a5d:4a45:: with SMTP id v5mr47291179wrs.7.1546801768678; Sun, 06 Jan 2019 11:09:28 -0800 (PST) Received: from [192.168.42.51] (p4FD44648.dip0.t-ipconnect.de. [79.212.70.72]) by smtp.googlemail.com with ESMTPSA id i192sm5559218wmg.7.2019.01.06.11.09.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Jan 2019 11:09:27 -0800 (PST) From: Thomas Gude Content-Type: multipart/mixed; boundary="Apple-Mail=_9874CA48-989F-4B1A-912E-E11BEDB8981E" Mime-Version: 1.0 (Mac OS X Mail 12.2 \(3445.102.3\)) Subject: Bug in openjdk8 8.192.26_1 ? Message-Id: <7B0150C2-2E2D-46C1-9C8E-C1D5D50BD60E@googlemail.com> Date: Sun, 6 Jan 2019 20:09:27 +0100 To: "java@freebsd.org" X-Mailer: Apple Mail (2.3445.102.3) X-Rspamd-Queue-Id: 3455F8AA98 X-Spamd-Bar: ----- X-Spamd-Result: default: False [-5.01 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; HAS_ATTACHMENT(0.00)[]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; NEURAL_HAM_SHORT(-0.99)[-0.985,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[googlemail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[java@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[e.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; IP_SCORE(-2.51)[ip: (-8.93), ipnet: 2a00:1450::/32(-1.89), asn: 15169(-1.67), country: US(-0.08)] 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: Sun, 06 Jan 2019 19:09:32 -0000 --Apple-Mail=_9874CA48-989F-4B1A-912E-E11BEDB8981E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi all, while researching a malfunction in the OpenHAB Astro binding, I think I = found a bug in the Math.asin() implementation of openjdk8-8.192.26_1. = Please have a look at the provided test programme (CheckMathIssue.java) = and the results provided in the other attached file (comparison.log). It = lists the output of four different java implementations: FreeBSD 11.2 openjdk8-8.192.26 FreeBSD 11.2 openjdk8-8.172.* MacOS 10.14 (Build 1.8.0_192-b12) Linux-OSMC 4.14 Java 8.191 The first one is obviously giving wrong values. Is this a bug or do you have any other idea why this may happen? Thank you and kind regards, Thomas Gude. --Apple-Mail=_9874CA48-989F-4B1A-912E-E11BEDB8981E Content-Disposition: attachment; filename=CheckMathIssue.java Content-Type: application/octet-stream; x-unix-mode=0644; name="CheckMathIssue.java" Content-Transfer-Encoding: 7bit public class CheckMathIssue { public static void main(String[] args) { System.out.println("Operating System: " + System.getProperty("os.name") + " " + System.getProperty("os.arch") + " " + System.getProperty("os.version")); System.out.println("Java: " + System.getProperty("java.version") + " " + System.getProperty("java.vendor")); System.out.println("Java Specification: " + System.getProperty("java.specification.name") + " " + System.getProperty("java.specification.vendor") + " " + System.getProperty("java.specification.version")); System.out.println("Java VM: " + System.getProperty("java.vm.version") + " " + System.getProperty("java.vm.vendor")); System.out.println("Java VM Specification: " + System.getProperty("java.vm.specification.name") + " " + System.getProperty("java.vm.specification.vendor") + " " + System.getProperty("java.vm.specification.version")); double value1 = Math.asin(0.5); double value2 = Math.asin(-0.38147821481517075); double value3 = StrictMath.asin(0.5); double value4 = StrictMath.asin(-0.38147821481517075); System.out.println("asin(0.5)= " + value1); System.out.println("asin(-0.38147821481517075)= " + value2); System.out.println("StrictMath asin(0.5)= " + value3); System.out.println("StrictMath asin(-0.38147821481517075)= " + value4); } } --Apple-Mail=_9874CA48-989F-4B1A-912E-E11BEDB8981E Content-Disposition: attachment; filename=comparison.log Content-Type: application/octet-stream; x-unix-mode=0644; name="comparison.log" Content-Transfer-Encoding: 7bit Operating System: FreeBSD amd64 11.2-STABLE Java: 1.8.0_192 Oracle Corporation Java Specification: Java Platform API Specification Oracle Corporation 1.8 Java VM: 25.192-b26 Oracle Corporation Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 asin(0.5)= 0.5 asin(-0.38147821481517075)= -0.38147821481517075 StrictMath asin(0.5)= 0.5 StrictMath asin(-0.38147821481517075)= -0.38147821481517075 Operating System: FreeBSD amd64 11.2-STABLE Java: 1.8.0_172 Oracle Corporation Java Specification: Java Platform API Specification Oracle Corporation 1.8 Java VM: 25.172-b11 Oracle Corporation Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 asin(0.5)= 0.5235987755982989 asin(-0.38147821481517075)= -0.391394915510742 StrictMath asin(0.5)= 0.5235987755982989 StrictMath asin(-0.38147821481517075)= -0.391394915510742 Operating System: Mac OS X x86_64 10.14.2 Java: 1.8.0_192 Oracle Corporation Java Specification: Java Platform API Specification Oracle Corporation 1.8 Java VM: 25.192-b12 Oracle Corporation Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 asin(0.5)= 0.5235987755982989 asin(-0.38147821481517075)= -0.391394915510742 StrictMath asin(0.5)= 0.5235987755982989 StrictMath asin(-0.38147821481517075)= -0.391394915510742 Operating System: Linux arm 4.14.78-2-osmc Java: 1.8.0_191 Oracle Corporation Java Specification: Java Platform API Specification Oracle Corporation 1.8 Java VM: 25.191-b12 Oracle Corporation Java VM Specification: Java Virtual Machine Specification Oracle Corporation 1.8 asin(0.5)= 0.5235987755982989 asin(-0.38147821481517075)= -0.391394915510742 StrictMath asin(0.5)= 0.5235987755982989 StrictMath asin(-0.38147821481517075)= -0.391394915510742 --Apple-Mail=_9874CA48-989F-4B1A-912E-E11BEDB8981E--