* bug#41177: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts
[not found] <20210212001405.48cabc72@alma-ubu.fritz.box>
@ 2021-02-12 10:52 ` Leo Prikler
2021-02-12 19:59 ` Björn Höfling
0 siblings, 1 reply; 2+ messages in thread
From: Leo Prikler @ 2021-02-12 10:52 UTC (permalink / raw)
To: Björn Höfling; +Cc: 46451-done, 41177-done
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#41177: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts
2021-02-12 10:52 ` bug#41177: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Leo Prikler
@ 2021-02-12 19:59 ` Björn Höfling
0 siblings, 0 replies; 2+ messages in thread
From: Björn Höfling @ 2021-02-12 19:59 UTC (permalink / raw)
To: Leo Prikler; +Cc: 46451-done, 41177-done
[-- Attachment #1: Type: text/plain, Size: 228 bytes --]
On Fri, 12 Feb 2021 11:52:50 +0100
Leo Prikler <leo.prikler@student.tugraz.at> wrote:
> I've pushed your patches with small changes to the commit messages and
> followed up with an indentation fix.
Thanks!
Björn
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-12 20:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210212001405.48cabc72@alma-ubu.fritz.box>
2021-02-12 10:52 ` bug#41177: [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Leo Prikler
2021-02-12 19:59 ` Björn Höfling
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).