langtools/test/tools/javap/T4777949.java
changeset 36526 3b41f1c69604
parent 30846 2b3f379840f0
equal deleted inserted replaced
36525:4caf88912b7f 36526:3b41f1c69604
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2016, 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.
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    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
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
       
    24 /*
       
    25  * @test
       
    26  * @bug 4777949
       
    27  * @summary Warn javap usage on package with simple name
       
    28  * @modules jdk.jdeps/com.sun.tools.javap
       
    29  */
       
    30 
    24 import java.io.*;
    31 import java.io.*;
    25 import java.util.*;
    32 import java.util.*;
    26 import javax.tools.*;
    33 import javax.tools.*;
    27 import com.sun.tools.javap.*;
    34 import com.sun.tools.javap.*;
    28 
    35 
    29 /*
       
    30  * @test
       
    31  * @bug 4777949
       
    32  * @summary Warn javap usage on package with simple name
       
    33  * @modules jdk.jdeps
       
    34  */
       
    35 public class T4777949 {
    36 public class T4777949 {
    36     public static void main(String... args) throws Exception {
    37     public static void main(String... args) throws Exception {
    37         new T4777949().run();
    38         new T4777949().run();
    38     }
    39     }
    39 
    40