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 /* @test
25 * @summary Unit test for buffers
26 * @bug 4413135 4414911 4416536 4416562 4418782 4471053 4472779 4490253 4523725
27 * 4526177 4463011 4660660 4661219 4663521 4782970 4804304 4938424 5029431
28 * 5071718 6231529 6221101 6234263 6535542 6591971 6593946 6795561 7190219
29 * 7199551 8065556 8149469 8230665
30 * @modules java.base/java.nio:open
31 * java.base/jdk.internal.misc
32 * @author Mark Reinhold
33 */
34
35
36 import java.io.PrintStream;
37
38 import java.nio.Buffer;
39 import java.nio.ByteBuffer;
40 import java.nio.CharBuffer;
41
42
43 public class Basic {
44
45 static PrintStream out = System.err;
46
47 static long ic(int i) {
48 int j = i % 54;
49 return j + 'a' + ((j > 26) ? 128 : 0);
|
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 /* @test
25 * @summary Unit test for buffers
26 * @bug 4413135 4414911 4416536 4416562 4418782 4471053 4472779 4490253 4523725
27 * 4526177 4463011 4660660 4661219 4663521 4782970 4804304 4938424 5029431
28 * 5071718 6231529 6221101 6234263 6535542 6591971 6593946 6795561 7190219
29 * 7199551 8065556 8149469 8230665 8237514
30 * @modules java.base/java.nio:open
31 * java.base/jdk.internal.misc
32 * @author Mark Reinhold
33 */
34
35
36 import java.io.PrintStream;
37
38 import java.nio.Buffer;
39 import java.nio.ByteBuffer;
40 import java.nio.CharBuffer;
41
42
43 public class Basic {
44
45 static PrintStream out = System.err;
46
47 static long ic(int i) {
48 int j = i % 54;
49 return j + 'a' + ((j > 26) ? 128 : 0);
|