langtools/test/tools/javah/T7185778.java
changeset 30730 d3ce7619db2c
parent 13690 8be9ba21c4a9
child 36991 7f814aac1f80
equal deleted inserted replaced
30729:398f0f51917a 30730:d3ce7619db2c
     1 /*
     1 /*
     2  * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2012, 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 7185778
    26  * @bug 7185778
    27  * @summary javah error "Not a valid class name" on class names with dollar signs
    27  * @summary javah error "Not a valid class name" on class names with dollar signs
    28  *   The first two tests are on an inner class name whose name does not contain $.
    28  *   The first two tests are on an inner class name whose name does not contain $.
    29  *   The second two tests are on an inner class name whose name does contain $.
    29  *   The second two tests are on an inner class name whose name does contain $.
    30  *   The last test is on an outer class whose name contains $.
    30  *   The last test is on an outer class whose name contains $.
       
    31  * @modules jdk.compiler
    31  * @run main T7185778 T7185778$inner
    32  * @run main T7185778 T7185778$inner
    32  * @run main T7185778 T7185778.inner
    33  * @run main T7185778 T7185778.inner
    33  * @run main T7185778 T7185778$inner$
    34  * @run main T7185778 T7185778$inner$
    34  * @run main T7185778 T7185778.inner$
    35  * @run main T7185778 T7185778.inner$
    35  * @run main T7185778 xx$yy
    36  * @run main T7185778 xx$yy