author | jjg |
Wed, 10 Aug 2016 15:47:46 -0700 | |
changeset 40308 | 274367a99f98 |
parent 36526 | 3b41f1c69604 |
permissions | -rw-r--r-- |
21006
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
1 |
/* |
36526 | 2 |
* Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved. |
21006
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
4 |
* |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
8 |
* |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
13 |
* accompanied this code). |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
14 |
* |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
18 |
* |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
21 |
* questions. |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
22 |
*/ |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
23 |
|
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
24 |
// key: compiler.misc.invalid.default.interface |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
25 |
// key: compiler.misc.bad.class.file.header |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
26 |
// key: compiler.err.cant.access |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
27 |
// options: -processor CreateBadClassFile |
40308
274367a99f98
8136930: Simplify use of module-system options by custom launchers
jjg
parents:
36526
diff
changeset
|
28 |
// run: exec --add-exports jdk.jdeps/com.sun.tools.classfile=ALL-UNNAMED |
21006
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
29 |
|
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
30 |
/* The annotation processor will create an invalid classfile with version 51.0 |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
31 |
* and a non-abstract method in an interface. Loading the classfile will produce |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
32 |
* the diagnostic. |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
33 |
*/ |
534673718919
8025087: Annotation processing api returns default modifier for interface static method
jlahoda
parents:
diff
changeset
|
34 |
class InvalidDefaultInterface { } |