test/tools/javac/unicode/SupplementaryJavaID6.java

changeset 1591
dc8b7aa7cef3
parent 554
9d9f26857129
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/unicode/SupplementaryJavaID6.java	Tue Feb 19 00:31:45 2013 -0800
     1.2 +++ b/test/tools/javac/unicode/SupplementaryJavaID6.java	Tue Feb 19 17:53:16 2013 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2003, 2004, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -21,12 +21,20 @@
    1.11   * questions.
    1.12   */
    1.13  
    1.14 +/*
    1.15 + * @test
    1.16 + * @bug 4914724 4973116 5014511
    1.17 + * @summary Ensure that a supplementary character can be used as part/whole of a
    1.18 + * class name on platforms that have Unicode aware filesystems.
    1.19 + * @run main SupplementaryJavaID6
    1.20 + */
    1.21 +
    1.22  public class SupplementaryJavaID6 {
    1.23      public static void main(String[] s) {
    1.24 -        new SupplementaryJavaID6();
    1.25 +        new SupplementaryJavaID6().test();
    1.26      }
    1.27  
    1.28 -    public SupplementaryJavaID6() {
    1.29 +    void test() {
    1.30          \ud801\udc00 instance = new \ud801\udc00();
    1.31          instance.\ud801\udc01();
    1.32      }

mercurial