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 6233345 6381699 6381702 6381705 6381706
27 * @summary Encode many char sequences in many ways
28 * @run main/timeout=1200 FindEncoderBugs
29 * @author Martin Buchholz
30 */
31
32 import java.util.*;
33 import java.util.regex.*;
34 import java.nio.*;
35 import java.nio.charset.*;
36
37 public class FindEncoderBugs {
38
39 static boolean isBroken(String csn) {
40 if (csn.equals("x-COMPOUND_TEXT")) return true;
41 return false;
42 }
43
44 static <T extends Comparable<? super T>> List<T> sort(Collection<T> c) {
45 List<T> list = new ArrayList<T>(c);
46 Collections.sort(list);
47 return list;
48 }
49
|
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 6233345 6381699 6381702 6381705 6381706
27 * @summary Encode many char sequences in many ways
28 * @run main/timeout=1200 FindEncoderBugs
29 * @author Martin Buchholz
30 * @key randomness
31 */
32
33 import java.util.*;
34 import java.util.regex.*;
35 import java.nio.*;
36 import java.nio.charset.*;
37
38 public class FindEncoderBugs {
39
40 static boolean isBroken(String csn) {
41 if (csn.equals("x-COMPOUND_TEXT")) return true;
42 return false;
43 }
44
45 static <T extends Comparable<? super T>> List<T> sort(Collection<T> c) {
46 List<T> list = new ArrayList<T>(c);
47 Collections.sort(list);
48 return list;
49 }
50
|