7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 @test
26 @bug 6304979
27 @summary REG: File Dialog throws ArrayIndexOutOfBounds Exception on XToolkit with b45
28 @author Dmitry Cherepanov: area=awt.filedialog
29 @run main/othervm -Dsun.awt.disableGtkFileDialogs=true ISCthrownByFileListTest
30 */
31
32 import java.awt.*;
33 import java.awt.event.*;
34 import java.lang.reflect.*;
35
36 /*
37 Since the "sun.awt.exception.handler" property will be removed in a future release
38 this test will be rewritten using new future API. (<<< Done).
39 It's important that the bug 6304979 is reproducible if the bug 6299853 is reproducible.
40 */
41
42 public class ISCthrownByFileListTest
43 {
44 private static Frame frame = null;
45 private static FileDialog fd = null;
46
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 @test
26 @bug 6304979
27 @key headful
28 @summary REG: File Dialog throws ArrayIndexOutOfBounds Exception on XToolkit with b45
29 @author Dmitry Cherepanov: area=awt.filedialog
30 @run main/othervm -Dsun.awt.disableGtkFileDialogs=true ISCthrownByFileListTest
31 */
32
33 import java.awt.*;
34 import java.awt.event.*;
35 import java.lang.reflect.*;
36
37 /*
38 Since the "sun.awt.exception.handler" property will be removed in a future release
39 this test will be rewritten using new future API. (<<< Done).
40 It's important that the bug 6304979 is reproducible if the bug 6299853 is reproducible.
41 */
42
43 public class ISCthrownByFileListTest
44 {
45 private static Frame frame = null;
46 private static FileDialog fd = null;
47
|