test/java/awt/xembed/server/TesterClient.java

Print this page

        

*** 30,40 **** private static Method test; private static boolean passed = false; public static void main(String[] args) throws Throwable { // First parameter is the name of the test, second is the window, the rest are rectangles Class cl = Class.forName("sun.awt.X11.XEmbedServerTester"); ! cl.getModule().addExports("sun.awt.X11",TesterClient.class.getModule()); test = cl.getMethod(args[0], new Class[0]); long window = Long.parseLong(args[1]); Rectangle r[] = new Rectangle[(args.length-2)/4]; for (int i = 0; i < r.length; i++) { --- 30,40 ---- private static Method test; private static boolean passed = false; public static void main(String[] args) throws Throwable { // First parameter is the name of the test, second is the window, the rest are rectangles Class cl = Class.forName("sun.awt.X11.XEmbedServerTester"); ! java.awt.Helper.addExports("sun.awt.X11", TesterClient.class.getModule()); test = cl.getMethod(args[0], new Class[0]); long window = Long.parseLong(args[1]); Rectangle r[] = new Rectangle[(args.length-2)/4]; for (int i = 0; i < r.length; i++) {