langtools/test/tools/javac/diags/examples/InvalidStaticInterface/InvalidStaticInterface.java
changeset 36526 3b41f1c69604
parent 21006 534673718919
child 40308 274367a99f98
equal deleted inserted replaced
36525:4caf88912b7f 36526:3b41f1c69604
     1 /*
     1 /*
     2  * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 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.
    23 
    23 
    24 // key: compiler.misc.invalid.static.interface
    24 // key: compiler.misc.invalid.static.interface
    25 // key: compiler.misc.bad.class.file.header
    25 // key: compiler.misc.bad.class.file.header
    26 // key: compiler.err.cant.access
    26 // key: compiler.err.cant.access
    27 // options: -processor CreateBadClassFile
    27 // options: -processor CreateBadClassFile
       
    28 // run: exec -XaddExports:jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED
    28 
    29 
    29 /* The annotation processor will create an invalid classfile with version 51.0
    30 /* The annotation processor will create an invalid classfile with version 51.0
    30  * and a static method in an interface. Loading the classfile will produce
    31  * and a static method in an interface. Loading the classfile will produce
    31  * the diagnostic.
    32  * the diagnostic.
    32  */
    33  */