equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
26 @bug 4386360 |
26 @bug 4386360 |
27 @summary tests that DataFlavor.selectBestTextFlavor() returns null when passed |
27 @summary tests that DataFlavor.selectBestTextFlavor() returns null when passed |
28 is a null array or an empty array or an array which doesn't contain |
28 is a null array or an empty array or an array which doesn't contain |
29 a text flavor in a supported encoding. |
29 a text flavor in a supported encoding. |
30 @author das@sparc.spb.su area=datatransfer |
30 @author das@sparc.spb.su area=datatransfer |
|
31 @modules java.datatransfer |
31 @run main SelectBestTextFlavorBadArrayTest |
32 @run main SelectBestTextFlavorBadArrayTest |
32 */ |
33 */ |
33 |
34 |
34 import java.awt.datatransfer.DataFlavor; |
35 import java.awt.datatransfer.DataFlavor; |
35 import java.util.Stack; |
36 import java.util.Stack; |