From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iMqKGC1eJmBkHQAA0tVLHw (envelope-from ) for ; Fri, 12 Feb 2021 10:53:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4IU1FC1eJmAmPAAAbx9fmQ (envelope-from ) for ; Fri, 12 Feb 2021 10:53:33 +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 E26EA17BCD for ; Fri, 12 Feb 2021 11:53:32 +0100 (CET) Received: from localhost ([::1]:57902 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAW4p-0001m5-Un for larch@yhetil.org; Fri, 12 Feb 2021 05:53:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42212) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAW4M-0001kD-M8 for bug-guix@gnu.org; Fri, 12 Feb 2021 05:53:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48468) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAW4M-0002jP-DK for bug-guix@gnu.org; Fri, 12 Feb 2021 05:53:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lAW4M-00039B-C6 for bug-guix@gnu.org; Fri, 12 Feb 2021 05:53:02 -0500 Subject: bug#41177: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Fri, 12 Feb 2021 10:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 41177 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Mail-Followup-To: 41177@debbugs.gnu.org, leo.prikler@student.tugraz.at, jonathan@terracrypt.net Received: via spool by 41177-done@debbugs.gnu.org id=D41177.161312717912078 (code D ref 41177); Fri, 12 Feb 2021 10:53:02 +0000 Received: (at 41177-done) by debbugs.gnu.org; 12 Feb 2021 10:52:59 +0000 Received: from localhost ([127.0.0.1]:60012 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAW4I-00038i-PY for submit@debbugs.gnu.org; Fri, 12 Feb 2021 05:52:59 -0500 Received: from mailrelay.tugraz.at ([129.27.2.202]:53691) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lAW4F-00038U-Dx; Fri, 12 Feb 2021 05:52:57 -0500 Received: from nijino.local (217-149-165-242.nat.highway.telekom.at [217.149.165.242]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4DcVhM3dsbz3y5Q; Fri, 12 Feb 2021 11:52:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1613127171; bh=Du3IhsYYxFYO8cZxde+IBa3Z9ioKBAfz/SnPMEWp+zI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=DEck3+yGPPZx7h+oB5yKgyyIDhQU4AiUzgCnFvy97VVIpCw3lewvhAg3TWRO/+UCE m58d3t+8arhF8tQqR3l+tV8P96ZNuQFAvof6AyW/iWTM/tCX5foIVRhYSKvmPSzWwh ENVjTJIvLQVUu00gK3p40tQEPOV7gL67wm5EPfG4= Message-ID: <7cfa2fd2c86b16bee0eeb5e9d9de658e895292ec.camel@student.tugraz.at> From: Leo Prikler Date: Fri, 12 Feb 2021 11:52:50 +0100 In-Reply-To: <20210212001405.48cabc72@alma-ubu.fritz.box> References: <20210212001405.48cabc72@alma-ubu.fritz.box> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.116 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46451-done@debbugs.gnu.org, 41177-done@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.24 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tugraz.at header.s=mailrelay header.b=DEck3+yG; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E26EA17BCD X-Spam-Score: 0.24 X-Migadu-Scanner: scn1.migadu.com X-TUID: DbFySOO/Rg8R Hi Björn Am Freitag, den 12.02.2021, 00:14 +0100 schrieb Björn Höfling: > 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=41177 > > 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[] = > GraphicsEnvironment.getLocalGraphicsEnvironment().getAvai > lableFontFamilyNames(); > > for ( int i = 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. Indeed, that it does. At least for 9 and 11, which I've invoked directly from their store paths. I've pushed your patches with small changes to the commit messages and followed up with an indentation fix. Regards, Leo