langtools/test/tools/javac/diags/examples/StaticImportOnlyClassesAndInterfaces/StaticImportOnlyClassesAndInterfaces.java
changeset 8045 df2ca0edfbaa
parent 6149 48de3564aa13
equal deleted inserted replaced
8044:7fd529d4472c 8045:df2ca0edfbaa
     1 /*
     1 /*
     2  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2010, 2011, 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.
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 // key: compiler.err.static.imp.only.classes.and.interfaces
    24 // key: compiler.err.static.imp.only.classes.and.interfaces
    25 // key: compiler.err.cant.resolve.location
    25 // key: compiler.err.cant.resolve.location
       
    26 // key: compiler.misc.location
    26 
    27 
    27 import static p.Other.array.length;
    28 import static p.Other.array.length;
    28 
    29 
    29 class StaticImportOnlyClassesAndInterfaces { }
    30 class StaticImportOnlyClassesAndInterfaces { }