Hi all,

Could you please consider the following changes to fix JDK-8098530?

--- src/solaris/classes/sun/awt/X11/generator/WrapperGenerator.java
(revision f0ae41314e223bf1b97c8126ac2b0d6edb5ee99d)
+++ src/solaris/classes/sun/awt/X11/generator/WrapperGenerator.java
(revision )
@@ -690,7 +690,7 @@
                 if (type == AtomicType.TYPE_ATOM) {
                     pw.println("\t\tret.append(\"" + name + " = \"
).append( XAtom.get(get_" + name + "()) ).append(\", \");");
                 } else if (name.equals("type")) {
-                    pw.println("\t\tret.append(\"type = \").append(
XlibWrapper.eventToString[get_type()] ).append(\", \");");
+                    pw.println("\t\tret.append(\"type = \").append(
XlibWrapper.getEventToString(get_type()) ).append(\", \");");
                 } else if (name.equals("window")){
                     pw.println("\t\tret.append(\"window = \" ).append(
getWindow(get_window()) ).append(\", \");");
                 } else if (type == AtomicType.TYPE_ARRAY) {

The sun.awt.X11.XlibWrapper class provides a method, which handles such
errors.
We should not access to array directly.

-- 
Best regards,
Sergey A. Malenkov

Reply via email to