FreeBSD Bugzilla – Attachment 234335 Details for
Bug 264356
java/openjdk17: getLocalGraphicsEnvironment() on for multi-screen setups throws exception: Cannot read the array length because "this.screens" is null
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Fix for screen count
patch-src_java.desktop_unix_classes_sun_awt_X11GraphicsEnvironment.java (text/plain), 612 bytes, created by
Sean Farley
on 2022-05-30 20:45:32 UTC
(
hide
)
Description:
Fix for screen count
Filename:
MIME Type:
Creator:
Sean Farley
Created:
2022-05-30 20:45:32 UTC
Size:
612 bytes
patch
obsolete
>--- src/java.desktop/unix/classes/sun/awt/X11GraphicsEnvironment.java.orig 2022-04-23 02:25:56 UTC >+++ src/java.desktop/unix/classes/sun/awt/X11GraphicsEnvironment.java >@@ -232,7 +232,7 @@ public final class X11GraphicsEnvironment extends SunG > throw new AWTError("no screen devices"); > } > int index = getDefaultScreenNum(); >- mainScreen = 0 < index && index < screens.length ? index : 0; >+ mainScreen = 0 < index && index < numScreens ? index : 0; > > for (int id = 0; id < numScreens; ++id) { > devices.put(id, old.containsKey(id) ? old.remove(id) :
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 264356
: 234335 |
234336