From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +FLII5e6JWA5dgAA0tVLHw (envelope-from ) for ; Thu, 11 Feb 2021 23:15:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4AJxH5e6JWCrTgAAbx9fmQ (envelope-from ) for ; Thu, 11 Feb 2021 23:15:35 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D8F3C9402A2 for ; Thu, 11 Feb 2021 23:15:34 +0000 (UTC) Received: from localhost ([::1]:39408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lALBN-0000bN-Ot for larch@yhetil.org; Thu, 11 Feb 2021 18:15:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lALAs-0000a1-Sn for guix-patches@gnu.org; Thu, 11 Feb 2021 18:15:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:47978) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lALAs-0003W3-LD for guix-patches@gnu.org; Thu, 11 Feb 2021 18:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lALAs-00017J-G1 for guix-patches@gnu.org; Thu, 11 Feb 2021 18:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46451] [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Resent-From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Feb 2021 23:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46451 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46451@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.16130852584219 (code B ref -1); Thu, 11 Feb 2021 23:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Feb 2021 23:14:18 +0000 Received: from localhost ([127.0.0.1]:59522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALAA-00015z-Eh for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:18 -0500 Received: from lists.gnu.org ([209.51.188.17]:40516) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lALA7-00015q-D1 for submit@debbugs.gnu.org; Thu, 11 Feb 2021 18:14:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lALA7-0000C3-8C for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:56848 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lALA5-0002zp-5S for guix-patches@gnu.org; Thu, 11 Feb 2021 18:14:15 -0500 Received: from alma-ubu.fritz.box (pd951f307.dip0.t-ipconnect.de [217.81.243.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id 7D3B33FC05 for ; Fri, 12 Feb 2021 00:14:07 +0100 (CET) Date: Fri, 12 Feb 2021 00:14:05 +0100 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Message-ID: <20210212001405.48cabc72@alma-ubu.fritz.box> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/f_Aey9eovVGi4oFa8AWwK+x"; protocol="application/pgp-signature" Received-SPF: none client-ip=83.151.27.109; envelope-from=bjoern.hoefling@bjoernhoefling.de; helo=bjoernhoefling.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D8F3C9402A2 X-Spam-Score: -4.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: wrpJS0ChOn+D --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable These two patches fix a NullPointerException in the OpenJDK packages. The patches apply only to OpenJDK9 and OpenJDK11, but with inheritence all OpenJDKx with x\in[9..14] are covered. Here is the bug report: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D41177 In order to test it you can use the following Main.java: ~~~~~~ import java.awt.*; public class Main { public static void main(String[] args) { String fonts[] =3D GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableF= ontFamilyNames(); for ( int i =3D 0; i < fonts.length; i++ ) { System.out.println(fonts[i]); } } } ~~~~~~~~ Compile: javac Main.java Run: java -cp . Main It should print a list of the available fonts. Bj=C3=B6rn Bj=C3=B6rn H=C3=B6fling (2): gnu: openjdk@9 : Add phase to hardcode libraries. gnu: openjdk11: Add phase to hardcode libraries. gnu/packages/java.scm | 56 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) --=20 2.27.0 --Sig_/f_Aey9eovVGi4oFa8AWwK+x Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCYCW6PQAKCRC/KGy2WT5f /YoYAJ4gxShHBii0rv4Am4RvLDwR2LlHQwCgqcAO28pJRrsYFPPhXY8Ap96sO+w= =hkhC -----END PGP SIGNATURE----- --Sig_/f_Aey9eovVGi4oFa8AWwK+x--