all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#46451] [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts
@ 2021-02-11 23:14 Björn Höfling
  2021-02-11 23:20 ` [bug#46451] [PATCH 1/2] gnu: openjdk@9 : Add phase to hardcode libraries Björn Höfling
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Björn Höfling @ 2021-02-11 23:14 UTC (permalink / raw)
  To: 46451

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

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().getAvailableFontFamilyNames();

        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.


Björn


Björn Höfling (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(-)

-- 
2.27.0


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-12 20:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-11 23:14 [bug#46451] [PATCH 0/2] OpenJDK: Fix NullPointerException when accessing fonts Björn Höfling
2021-02-11 23:20 ` [bug#46451] [PATCH 1/2] gnu: openjdk@9 : Add phase to hardcode libraries Björn Höfling
2021-02-11 23:20 ` [bug#46451] [PATCH 2/2] gnu: openjdk11: " Björn Höfling
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 external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.