4205N/A/*
4205N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4205N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4205N/A *
4205N/A * This code is free software; you can redistribute it and/or modify it
4205N/A * under the terms of the GNU General Public License version 2 only, as
4205N/A * published by the Free Software Foundation.
4205N/A *
4205N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4205N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4205N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4205N/A * version 2 for more details (a copy is included in the LICENSE file that
4205N/A * accompanied this code).
4205N/A *
4205N/A * You should have received a copy of the GNU General Public License version
4205N/A * 2 along with this work; if not, write to the Free Software Foundation,
4205N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4205N/A *
4205N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4205N/A * or visit www.oracle.com if you need additional information or have any
4205N/A * questions.
4205N/A */
4205N/A
4205N/A/*
4205N/A * @test
4205N/A * @bug 7041232
4205N/A * @summary verify that an unexpected exception isn't thrown for unnatural data to keep backward compatibility with JDK 6.
4205N/A */
4205N/Aimport java.text.*;
4205N/A
4205N/Apublic class Bug7041232 {
4205N/A
4205N/A public static void main(String[] args) {
4205N/A String UnicodeChars;
4205N/A StringBuffer sb = new StringBuffer();
4205N/A
4205N/A // Generates String which includes U+2028(line separator) and
4205N/A // U+2029(paragraph separator)
4205N/A for (int i = 0x2000; i < 0x2100; i++) {
4205N/A sb.append((char)i);
4205N/A }
4205N/A UnicodeChars = sb.toString();
4205N/A
4205N/A Bidi bidi = new Bidi(UnicodeChars, Bidi.DIRECTION_DEFAULT_LEFT_TO_RIGHT);
4205N/A bidi.createLineBidi(0, UnicodeChars.length());
4205N/A }
4205N/A
4205N/A}