Thu, 21 Feb 2013 15:26:46 +0000
8007461: Regression: bad overload resolution when inner class and outer class have method with same name
Summary: Fix regression in varargs method resolution introduced by bad refactoring
Reviewed-by: jjg
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
aoqi@0 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
aoqi@0 | 4 | * |
aoqi@0 | 5 | * This code is free software; you can redistribute it and/or modify it |
aoqi@0 | 6 | * under the terms of the GNU General Public License version 2 only, as |
aoqi@0 | 7 | * published by the Free Software Foundation. |
aoqi@0 | 8 | * |
aoqi@0 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
aoqi@0 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
aoqi@0 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
aoqi@0 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
aoqi@0 | 13 | * accompanied this code). |
aoqi@0 | 14 | * |
aoqi@0 | 15 | * You should have received a copy of the GNU General Public License version |
aoqi@0 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
aoqi@0 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
aoqi@0 | 18 | * |
aoqi@0 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
aoqi@0 | 20 | * or visit www.oracle.com if you need additional information or have any |
aoqi@0 | 21 | * questions. |
aoqi@0 | 22 | */ |
aoqi@0 | 23 | |
aoqi@0 | 24 | /* |
aoqi@0 | 25 | * @test |
aoqi@0 | 26 | * @bug 8006263 |
aoqi@0 | 27 | * @summary Supplementary test cases needed for doclint |
aoqi@0 | 28 | * @library .. |
aoqi@0 | 29 | * @build DocLintTester |
aoqi@0 | 30 | * @run main DocLintTester -Xmsgs:-html EntitiesTest.java |
aoqi@0 | 31 | * @run main DocLintTester -Xmsgs:html -ref EntitiesTest.out EntitiesTest.java |
aoqi@0 | 32 | */ |
aoqi@0 | 33 | |
aoqi@0 | 34 | /** */ |
aoqi@0 | 35 | class EntitiesTest { |
aoqi@0 | 36 | |
aoqi@0 | 37 | /** |
aoqi@0 | 38 | *     |
aoqi@0 | 39 | * ࡎ ࡎ ࡎ |
aoqi@0 | 40 | */ |
aoqi@0 | 41 | void range_test() { } |
aoqi@0 | 42 | |
aoqi@0 | 43 | /** |
aoqi@0 | 44 | *   |
aoqi@0 | 45 | * ¡ ¡ |
aoqi@0 | 46 | * ¢ ¢ |
aoqi@0 | 47 | * £ £ |
aoqi@0 | 48 | * ¤ ¤ |
aoqi@0 | 49 | * ¥ ¥ |
aoqi@0 | 50 | * ¦ ¦ |
aoqi@0 | 51 | * § § |
aoqi@0 | 52 | * ¨ ¨ |
aoqi@0 | 53 | * © © |
aoqi@0 | 54 | * ª ª |
aoqi@0 | 55 | * « « |
aoqi@0 | 56 | * ¬ ¬ |
aoqi@0 | 57 | * ­ ­ |
aoqi@0 | 58 | * ® ® |
aoqi@0 | 59 | * ¯ ¯ |
aoqi@0 | 60 | * ° ° |
aoqi@0 | 61 | * ± ± |
aoqi@0 | 62 | * ² ² |
aoqi@0 | 63 | * ³ ³ |
aoqi@0 | 64 | * ´ ´ |
aoqi@0 | 65 | * µ µ |
aoqi@0 | 66 | * ¶ ¶ |
aoqi@0 | 67 | * · · |
aoqi@0 | 68 | * ¸ ¸ |
aoqi@0 | 69 | * ¹ ¹ |
aoqi@0 | 70 | * º º |
aoqi@0 | 71 | * » » |
aoqi@0 | 72 | * ¼ ¼ |
aoqi@0 | 73 | * ½ ½ |
aoqi@0 | 74 | * ¾ ¾ |
aoqi@0 | 75 | * ¿ ¿ |
aoqi@0 | 76 | * À À |
aoqi@0 | 77 | * Á Á |
aoqi@0 | 78 | * Â Â |
aoqi@0 | 79 | * Ã Ã |
aoqi@0 | 80 | * Ä Ä |
aoqi@0 | 81 | * Å Å |
aoqi@0 | 82 | * Æ Æ |
aoqi@0 | 83 | * Ç Ç |
aoqi@0 | 84 | * È È |
aoqi@0 | 85 | * É É |
aoqi@0 | 86 | * Ê Ê |
aoqi@0 | 87 | * Ë Ë |
aoqi@0 | 88 | * Ì Ì |
aoqi@0 | 89 | * Í Í |
aoqi@0 | 90 | * Î Î |
aoqi@0 | 91 | * Ï Ï |
aoqi@0 | 92 | * Ð Ð |
aoqi@0 | 93 | * Ñ Ñ |
aoqi@0 | 94 | * Ò Ò |
aoqi@0 | 95 | * Ó Ó |
aoqi@0 | 96 | * Ô Ô |
aoqi@0 | 97 | * Õ Õ |
aoqi@0 | 98 | * Ö Ö |
aoqi@0 | 99 | * × × |
aoqi@0 | 100 | * Ø Ø |
aoqi@0 | 101 | * Ù Ù |
aoqi@0 | 102 | * Ú Ú |
aoqi@0 | 103 | * Û Û |
aoqi@0 | 104 | * Ü Ü |
aoqi@0 | 105 | * Ý Ý |
aoqi@0 | 106 | * Þ Þ |
aoqi@0 | 107 | * ß ß |
aoqi@0 | 108 | * à à |
aoqi@0 | 109 | * á á |
aoqi@0 | 110 | * â â |
aoqi@0 | 111 | * ã ã |
aoqi@0 | 112 | * ä ä |
aoqi@0 | 113 | * å å |
aoqi@0 | 114 | * æ æ |
aoqi@0 | 115 | * ç ç |
aoqi@0 | 116 | * è è |
aoqi@0 | 117 | * é é |
aoqi@0 | 118 | * ê ê |
aoqi@0 | 119 | * ë ë |
aoqi@0 | 120 | * ì ì |
aoqi@0 | 121 | * í í |
aoqi@0 | 122 | * î î |
aoqi@0 | 123 | * ï ï |
aoqi@0 | 124 | * ð ð |
aoqi@0 | 125 | * ñ ñ |
aoqi@0 | 126 | * ò ò |
aoqi@0 | 127 | * ó ó |
aoqi@0 | 128 | * ô ô |
aoqi@0 | 129 | * õ õ |
aoqi@0 | 130 | * ö ö |
aoqi@0 | 131 | * ÷ ÷ |
aoqi@0 | 132 | * ø ø |
aoqi@0 | 133 | * ù ù |
aoqi@0 | 134 | * ú ú |
aoqi@0 | 135 | * û û |
aoqi@0 | 136 | * ü ü |
aoqi@0 | 137 | * ý ý |
aoqi@0 | 138 | * þ þ |
aoqi@0 | 139 | * ÿ ÿ |
aoqi@0 | 140 | * ƒ ƒ |
aoqi@0 | 141 | * Α Α |
aoqi@0 | 142 | * Β Β |
aoqi@0 | 143 | * Γ Γ |
aoqi@0 | 144 | * Δ Δ |
aoqi@0 | 145 | * Ε Ε |
aoqi@0 | 146 | * Ζ Ζ |
aoqi@0 | 147 | * Η Η |
aoqi@0 | 148 | * Θ Θ |
aoqi@0 | 149 | * Ι Ι |
aoqi@0 | 150 | * Κ Κ |
aoqi@0 | 151 | * Λ Λ |
aoqi@0 | 152 | * Μ Μ |
aoqi@0 | 153 | * Ν Ν |
aoqi@0 | 154 | * Ξ Ξ |
aoqi@0 | 155 | * Ο Ο |
aoqi@0 | 156 | * Π Π |
aoqi@0 | 157 | * Ρ Ρ |
aoqi@0 | 158 | * Σ Σ |
aoqi@0 | 159 | * Τ Τ |
aoqi@0 | 160 | * Υ Υ |
aoqi@0 | 161 | * Φ Φ |
aoqi@0 | 162 | * Χ Χ |
aoqi@0 | 163 | * Ψ Ψ |
aoqi@0 | 164 | * Ω Ω |
aoqi@0 | 165 | * α α |
aoqi@0 | 166 | * β β |
aoqi@0 | 167 | * γ γ |
aoqi@0 | 168 | * δ δ |
aoqi@0 | 169 | * ε ε |
aoqi@0 | 170 | * ζ ζ |
aoqi@0 | 171 | * η η |
aoqi@0 | 172 | * θ θ |
aoqi@0 | 173 | * ι ι |
aoqi@0 | 174 | * κ κ |
aoqi@0 | 175 | * λ λ |
aoqi@0 | 176 | * μ μ |
aoqi@0 | 177 | * ν ν |
aoqi@0 | 178 | * ξ ξ |
aoqi@0 | 179 | * ο ο |
aoqi@0 | 180 | * π π |
aoqi@0 | 181 | * ρ ρ |
aoqi@0 | 182 | * ς ς |
aoqi@0 | 183 | * σ σ |
aoqi@0 | 184 | * τ τ |
aoqi@0 | 185 | * υ υ |
aoqi@0 | 186 | * φ φ |
aoqi@0 | 187 | * χ χ |
aoqi@0 | 188 | * ψ ψ |
aoqi@0 | 189 | * ω ω |
aoqi@0 | 190 | * ϑ ϑ |
aoqi@0 | 191 | * ϒ ϒ |
aoqi@0 | 192 | * ϖ ϖ |
aoqi@0 | 193 | * • • |
aoqi@0 | 194 | * … … |
aoqi@0 | 195 | * ′ ′ |
aoqi@0 | 196 | * ″ ″ |
aoqi@0 | 197 | * ‾ ‾ |
aoqi@0 | 198 | * ⁄ ⁄ |
aoqi@0 | 199 | * ℘ ℘ |
aoqi@0 | 200 | * ℑ ℑ |
aoqi@0 | 201 | * ℜ ℜ |
aoqi@0 | 202 | * ™ ™ |
aoqi@0 | 203 | * ℵ ℵ |
aoqi@0 | 204 | * ← ← |
aoqi@0 | 205 | * ↑ ↑ |
aoqi@0 | 206 | * → → |
aoqi@0 | 207 | * ↓ ↓ |
aoqi@0 | 208 | * ↔ ↔ |
aoqi@0 | 209 | * ↵ ↵ |
aoqi@0 | 210 | * ⇐ ⇐ |
aoqi@0 | 211 | * ⇑ ⇑ |
aoqi@0 | 212 | * ⇒ ⇒ |
aoqi@0 | 213 | * ⇓ ⇓ |
aoqi@0 | 214 | * ⇔ ⇔ |
aoqi@0 | 215 | * ∀ ∀ |
aoqi@0 | 216 | * ∂ ∂ |
aoqi@0 | 217 | * ∃ ∃ |
aoqi@0 | 218 | * ∅ ∅ |
aoqi@0 | 219 | * ∇ ∇ |
aoqi@0 | 220 | * ∈ ∈ |
aoqi@0 | 221 | * ∉ ∉ |
aoqi@0 | 222 | * ∋ ∋ |
aoqi@0 | 223 | * ∏ ∏ |
aoqi@0 | 224 | * ∑ ∑ |
aoqi@0 | 225 | * − − |
aoqi@0 | 226 | * ∗ ∗ |
aoqi@0 | 227 | * √ √ |
aoqi@0 | 228 | * ∝ ∝ |
aoqi@0 | 229 | * ∞ ∞ |
aoqi@0 | 230 | * ∠ ∠ |
aoqi@0 | 231 | * ∧ ∧ |
aoqi@0 | 232 | * ∨ ∨ |
aoqi@0 | 233 | * ∩ ∩ |
aoqi@0 | 234 | * ∪ ∪ |
aoqi@0 | 235 | * &_int; ∫ |
aoqi@0 | 236 | * ∴ ∴ |
aoqi@0 | 237 | * ∼ ∼ |
aoqi@0 | 238 | * ≅ ≅ |
aoqi@0 | 239 | * ≈ ≈ |
aoqi@0 | 240 | * ≠ ≠ |
aoqi@0 | 241 | * ≡ ≡ |
aoqi@0 | 242 | * ≤ ≤ |
aoqi@0 | 243 | * ≥ ≥ |
aoqi@0 | 244 | * ⊂ ⊂ |
aoqi@0 | 245 | * ⊃ ⊃ |
aoqi@0 | 246 | * ⊄ ⊄ |
aoqi@0 | 247 | * ⊆ ⊆ |
aoqi@0 | 248 | * ⊇ ⊇ |
aoqi@0 | 249 | * ⊕ ⊕ |
aoqi@0 | 250 | * ⊗ ⊗ |
aoqi@0 | 251 | * ⊥ ⊥ |
aoqi@0 | 252 | * ⋅ ⋅ |
aoqi@0 | 253 | * ⌈ ⌈ |
aoqi@0 | 254 | * ⌉ ⌉ |
aoqi@0 | 255 | * ⌊ ⌊ |
aoqi@0 | 256 | * ⌋ ⌋ |
aoqi@0 | 257 | * ⟨ 〈 |
aoqi@0 | 258 | * ⟩ 〉 |
aoqi@0 | 259 | * ◊ ◊ |
aoqi@0 | 260 | * ♠ ♠ |
aoqi@0 | 261 | * ♣ ♣ |
aoqi@0 | 262 | * ♥ ♥ |
aoqi@0 | 263 | * ♦ ♦ |
aoqi@0 | 264 | * " " |
aoqi@0 | 265 | * & & |
aoqi@0 | 266 | * < < |
aoqi@0 | 267 | * > > |
aoqi@0 | 268 | * Œ Œ |
aoqi@0 | 269 | * œ œ |
aoqi@0 | 270 | * Š Š |
aoqi@0 | 271 | * š š |
aoqi@0 | 272 | * Ÿ Ÿ |
aoqi@0 | 273 | * ˆ ˆ |
aoqi@0 | 274 | * ˜ ˜ |
aoqi@0 | 275 | *     |
aoqi@0 | 276 | *     |
aoqi@0 | 277 | *     |
aoqi@0 | 278 | * ‌ ‌ |
aoqi@0 | 279 | * ‍ ‍ |
aoqi@0 | 280 | * ‎ ‎ |
aoqi@0 | 281 | * ‏ ‏ |
aoqi@0 | 282 | * – – |
aoqi@0 | 283 | * — — |
aoqi@0 | 284 | * ‘ ‘ |
aoqi@0 | 285 | * ’ ’ |
aoqi@0 | 286 | * ‚ ‚ |
aoqi@0 | 287 | * “ “ |
aoqi@0 | 288 | * ” ” |
aoqi@0 | 289 | * „ „ |
aoqi@0 | 290 | * † † |
aoqi@0 | 291 | * ‡ ‡ |
aoqi@0 | 292 | * ‰ ‰ |
aoqi@0 | 293 | * ‹ ‹ |
aoqi@0 | 294 | * › › |
aoqi@0 | 295 | * € € |
aoqi@0 | 296 | */ |
aoqi@0 | 297 | void symbolic_entities() { } |
aoqi@0 | 298 | |
aoqi@0 | 299 | /** |
aoqi@0 | 300 | * &bad; |
aoqi@0 | 301 | */ |
aoqi@0 | 302 | void bad_name() { } |
aoqi@0 | 303 | |
aoqi@0 | 304 | /** |
aoqi@0 | 305 | *  |
aoqi@0 | 306 | * ࡏ |
aoqi@0 | 307 | */ |
aoqi@0 | 308 | void out_of_range() { } |
aoqi@0 | 309 | |
aoqi@0 | 310 | /** |
aoqi@0 | 311 | * ― |
aoqi@0 | 312 | * ⌫ |
aoqi@0 | 313 | *  |
aoqi@0 | 314 | */ |
aoqi@0 | 315 | void sparse_negative() { } |
aoqi@0 | 316 | } |
aoqi@0 | 317 |