Fri, 22 Mar 2013 12:43:09 +0000
8010303: Graph inference: missing incorporation step causes spurious inference error
Summary: Multiple equality constraints on inference vars are not used to generate new inference constraints
Reviewed-by: jjg
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * Copyright (c) 2007, 2012, 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 | import java.util.List; |
aoqi@0 | 25 | |
aoqi@0 | 26 | public class TestClass1 { |
aoqi@0 | 27 | // simple types |
aoqi@0 | 28 | byte b; |
aoqi@0 | 29 | short s; |
aoqi@0 | 30 | int i; |
aoqi@0 | 31 | long l; |
aoqi@0 | 32 | float f; |
aoqi@0 | 33 | double d; |
aoqi@0 | 34 | Object o; |
aoqi@0 | 35 | String t; |
aoqi@0 | 36 | List<String> g; |
aoqi@0 | 37 | |
aoqi@0 | 38 | // constants |
aoqi@0 | 39 | static final byte bc = 0; |
aoqi@0 | 40 | static final short sc = 0; |
aoqi@0 | 41 | static final int ic = 0; |
aoqi@0 | 42 | static final long lc = 0; |
aoqi@0 | 43 | static final float fc = 0; |
aoqi@0 | 44 | static final double dc = 0; |
aoqi@0 | 45 | static final Object oc = null; |
aoqi@0 | 46 | static final String tc = ""; |
aoqi@0 | 47 | static final List<String> gc = null; |
aoqi@0 | 48 | |
aoqi@0 | 49 | // simple arrays |
aoqi@0 | 50 | byte[] ba; |
aoqi@0 | 51 | short[] sa; // not handled corrected by javah v6 |
aoqi@0 | 52 | int[] ia; |
aoqi@0 | 53 | long[] la; |
aoqi@0 | 54 | float[] fa; |
aoqi@0 | 55 | double[] da; |
aoqi@0 | 56 | Object[] oa; |
aoqi@0 | 57 | String[] ta; |
aoqi@0 | 58 | List<String>[] ga; |
aoqi@0 | 59 | |
aoqi@0 | 60 | // multidimensional arrays |
aoqi@0 | 61 | byte[][] baa; |
aoqi@0 | 62 | short[][] saa; |
aoqi@0 | 63 | int[][] iaa; |
aoqi@0 | 64 | long[][] laa; |
aoqi@0 | 65 | float[][] faa; |
aoqi@0 | 66 | double[][] daa; |
aoqi@0 | 67 | Object[][] oaa; |
aoqi@0 | 68 | String[][] taa; |
aoqi@0 | 69 | List<String>[] gaa; |
aoqi@0 | 70 | |
aoqi@0 | 71 | // simple Java methods |
aoqi@0 | 72 | byte bm() { return 0; } |
aoqi@0 | 73 | short sm() { return 0; } |
aoqi@0 | 74 | int im() { return 0; } |
aoqi@0 | 75 | long lm() { return 0; } |
aoqi@0 | 76 | float fm() { return 0; } |
aoqi@0 | 77 | double dm() { return 0; } |
aoqi@0 | 78 | Object om() { return null; } |
aoqi@0 | 79 | String tm() { return ""; } |
aoqi@0 | 80 | List<String> gm() { return null; } |
aoqi@0 | 81 | void vm() { } |
aoqi@0 | 82 | byte[] bam() { return null; } |
aoqi@0 | 83 | short[] sam() { return null; } |
aoqi@0 | 84 | int[] iam() { return null; } |
aoqi@0 | 85 | long[] lam() { return null; } |
aoqi@0 | 86 | float[] fam() { return null; } |
aoqi@0 | 87 | double[] dam() { return null; } |
aoqi@0 | 88 | Object[] oam() { return null; } |
aoqi@0 | 89 | String[] tam() { return null; } |
aoqi@0 | 90 | List<String>[] gam() { return null; } |
aoqi@0 | 91 | byte[][] baam() { return null; } |
aoqi@0 | 92 | short[][] saam() { return null; } |
aoqi@0 | 93 | int[][] iaam() { return null; } |
aoqi@0 | 94 | long[][] laam() { return null; } |
aoqi@0 | 95 | float[][] faam() { return null; } |
aoqi@0 | 96 | double[][] daam() { return null; } |
aoqi@0 | 97 | Object[][] oaam() { return null; } |
aoqi@0 | 98 | String[][] taam() { return null; } |
aoqi@0 | 99 | List<String>[] gaam() { return null; } |
aoqi@0 | 100 | |
aoqi@0 | 101 | // simple native methods |
aoqi@0 | 102 | native byte bmn(); |
aoqi@0 | 103 | native short smn(); |
aoqi@0 | 104 | native int imn(); |
aoqi@0 | 105 | native long lmn(); |
aoqi@0 | 106 | native float fmn(); |
aoqi@0 | 107 | native double dmn(); |
aoqi@0 | 108 | native Object omn(); |
aoqi@0 | 109 | native String tmn(); |
aoqi@0 | 110 | native List<String> gmn(); |
aoqi@0 | 111 | native void vmn(); |
aoqi@0 | 112 | native byte[] bamn(); |
aoqi@0 | 113 | native short[] samn(); |
aoqi@0 | 114 | native int[] iamn(); |
aoqi@0 | 115 | native long[] lamn(); |
aoqi@0 | 116 | native float[] famn(); |
aoqi@0 | 117 | native double[] damn(); |
aoqi@0 | 118 | native Object[] oamn(); |
aoqi@0 | 119 | native String[] tamn(); |
aoqi@0 | 120 | native List<String>[] gamn(); |
aoqi@0 | 121 | native byte[][] baamn(); |
aoqi@0 | 122 | native short[][] saamn(); |
aoqi@0 | 123 | native int[][] iaamn(); |
aoqi@0 | 124 | native long[][] laamn(); |
aoqi@0 | 125 | native float[][] faamn(); |
aoqi@0 | 126 | native double[][] daamn(); |
aoqi@0 | 127 | native Object[][] oaamn(); |
aoqi@0 | 128 | native String[][] taamn(); |
aoqi@0 | 129 | native List<String>[] gaamn(); |
aoqi@0 | 130 | |
aoqi@0 | 131 | // overloaded Java methods |
aoqi@0 | 132 | byte bm1() { return 0; } |
aoqi@0 | 133 | short sm1() { return 0; } |
aoqi@0 | 134 | int im1() { return 0; } |
aoqi@0 | 135 | long lm1() { return 0; } |
aoqi@0 | 136 | float fm1() { return 0; } |
aoqi@0 | 137 | double dm1() { return 0; } |
aoqi@0 | 138 | Object om1() { return null; } |
aoqi@0 | 139 | String tm1() { return ""; } |
aoqi@0 | 140 | List<String> gm1() { return null; } |
aoqi@0 | 141 | void vm1() { } |
aoqi@0 | 142 | |
aoqi@0 | 143 | byte bm2(int i) { return 0; } |
aoqi@0 | 144 | short sm2(int i) { return 0; } |
aoqi@0 | 145 | int im2(int i) { return 0; } |
aoqi@0 | 146 | long lm2(int i) { return 0; } |
aoqi@0 | 147 | float fm2(int i) { return 0; } |
aoqi@0 | 148 | double dm2(int i) { return 0; } |
aoqi@0 | 149 | Object om2(int i) { return null; } |
aoqi@0 | 150 | String tm2(int i) { return ""; } |
aoqi@0 | 151 | List<String> gm2(int i) { return null; } |
aoqi@0 | 152 | void vm2(int i) { } |
aoqi@0 | 153 | |
aoqi@0 | 154 | // overloaded native methods |
aoqi@0 | 155 | native byte bmn1(); |
aoqi@0 | 156 | native short smn1(); |
aoqi@0 | 157 | native int imn1(); |
aoqi@0 | 158 | native long lmn1(); |
aoqi@0 | 159 | native float fmn1(); |
aoqi@0 | 160 | native double dmn1(); |
aoqi@0 | 161 | native Object omn1(); |
aoqi@0 | 162 | native String tmn1(); |
aoqi@0 | 163 | native List<String> gmn1(); |
aoqi@0 | 164 | native void vmn1(); |
aoqi@0 | 165 | |
aoqi@0 | 166 | native byte bmn2(int i); |
aoqi@0 | 167 | native short smn2(int i); |
aoqi@0 | 168 | native int imn2(int i); |
aoqi@0 | 169 | native long lmn2(int i); |
aoqi@0 | 170 | native float fmn2(int i); |
aoqi@0 | 171 | native double dmn2(int i); |
aoqi@0 | 172 | native Object omn2(int i); |
aoqi@0 | 173 | native String tmn2(int i); |
aoqi@0 | 174 | native List<String> gmn2(int i); |
aoqi@0 | 175 | native void vmn2(int i); |
aoqi@0 | 176 | |
aoqi@0 | 177 | // arg types for Java methods |
aoqi@0 | 178 | void mb(byte b) { } |
aoqi@0 | 179 | void ms(short s) { } |
aoqi@0 | 180 | void mi(int i) { } |
aoqi@0 | 181 | void ml(long l) { } |
aoqi@0 | 182 | void mf(float f) { } |
aoqi@0 | 183 | void md(double d) { } |
aoqi@0 | 184 | void mo(Object o) { } |
aoqi@0 | 185 | void mt(String t) { } |
aoqi@0 | 186 | void mg(List<String> g) { } |
aoqi@0 | 187 | |
aoqi@0 | 188 | // arg types for native methods |
aoqi@0 | 189 | native void mbn(byte b); |
aoqi@0 | 190 | native void msn(short s); |
aoqi@0 | 191 | native void min(int i); |
aoqi@0 | 192 | native void mln(long l); |
aoqi@0 | 193 | native void mfn(float f); |
aoqi@0 | 194 | native void mdn(double d); |
aoqi@0 | 195 | native void mon(Object o); |
aoqi@0 | 196 | native void mtn(String t); |
aoqi@0 | 197 | native void mgn(List<String> g); |
aoqi@0 | 198 | |
aoqi@0 | 199 | static class Inner1 { |
aoqi@0 | 200 | // simple types |
aoqi@0 | 201 | byte b; |
aoqi@0 | 202 | short s; |
aoqi@0 | 203 | int i; |
aoqi@0 | 204 | long l; |
aoqi@0 | 205 | float f; |
aoqi@0 | 206 | double d; |
aoqi@0 | 207 | Object o; |
aoqi@0 | 208 | String t; |
aoqi@0 | 209 | List<String> g; |
aoqi@0 | 210 | |
aoqi@0 | 211 | // constants |
aoqi@0 | 212 | static final byte bc = 0; |
aoqi@0 | 213 | static final short sc = 0; |
aoqi@0 | 214 | static final int ic = 0; |
aoqi@0 | 215 | static final long lc = 0; |
aoqi@0 | 216 | static final float fc = 0; |
aoqi@0 | 217 | static final double dc = 0; |
aoqi@0 | 218 | static final Object oc = null; |
aoqi@0 | 219 | static final String tc = ""; |
aoqi@0 | 220 | static final List<String> gc = null; |
aoqi@0 | 221 | |
aoqi@0 | 222 | // simple arrays |
aoqi@0 | 223 | byte[] ba; |
aoqi@0 | 224 | // short[] sa; // not handled corrected by javah v6 |
aoqi@0 | 225 | int[] ia; |
aoqi@0 | 226 | long[] la; |
aoqi@0 | 227 | float[] fa; |
aoqi@0 | 228 | double[] da; |
aoqi@0 | 229 | Object[] oa; |
aoqi@0 | 230 | String[] ta; |
aoqi@0 | 231 | List<String>[] ga; |
aoqi@0 | 232 | |
aoqi@0 | 233 | // multidimensional arrays |
aoqi@0 | 234 | byte[][] baa; |
aoqi@0 | 235 | short[][] saa; |
aoqi@0 | 236 | int[][] iaa; |
aoqi@0 | 237 | long[][] laa; |
aoqi@0 | 238 | float[][] faa; |
aoqi@0 | 239 | double[][] daa; |
aoqi@0 | 240 | Object[][] oaa; |
aoqi@0 | 241 | String[][] taa; |
aoqi@0 | 242 | List<String>[] gaa; |
aoqi@0 | 243 | |
aoqi@0 | 244 | // simple Java methods |
aoqi@0 | 245 | byte bm() { return 0; } |
aoqi@0 | 246 | short sm() { return 0; } |
aoqi@0 | 247 | int im() { return 0; } |
aoqi@0 | 248 | long lm() { return 0; } |
aoqi@0 | 249 | float fm() { return 0; } |
aoqi@0 | 250 | double dm() { return 0; } |
aoqi@0 | 251 | Object om() { return null; } |
aoqi@0 | 252 | String tm() { return ""; } |
aoqi@0 | 253 | List<String> gm() { return null; } |
aoqi@0 | 254 | void vm() { } |
aoqi@0 | 255 | |
aoqi@0 | 256 | // simple native methods |
aoqi@0 | 257 | native byte bmn(); |
aoqi@0 | 258 | native short smn(); |
aoqi@0 | 259 | native int imn(); |
aoqi@0 | 260 | native long lmn(); |
aoqi@0 | 261 | native float fmn(); |
aoqi@0 | 262 | native double dmn(); |
aoqi@0 | 263 | native Object omn(); |
aoqi@0 | 264 | native String tmn(); |
aoqi@0 | 265 | native List<String> gmn(); |
aoqi@0 | 266 | native void vmn(); |
aoqi@0 | 267 | |
aoqi@0 | 268 | // overloaded Java methods |
aoqi@0 | 269 | byte bm1() { return 0; } |
aoqi@0 | 270 | short sm1() { return 0; } |
aoqi@0 | 271 | int im1() { return 0; } |
aoqi@0 | 272 | long lm1() { return 0; } |
aoqi@0 | 273 | float fm1() { return 0; } |
aoqi@0 | 274 | double dm1() { return 0; } |
aoqi@0 | 275 | Object om1() { return null; } |
aoqi@0 | 276 | String tm1() { return ""; } |
aoqi@0 | 277 | List<String> gm1() { return null; } |
aoqi@0 | 278 | void vm1() { } |
aoqi@0 | 279 | |
aoqi@0 | 280 | byte bm2(int i) { return 0; } |
aoqi@0 | 281 | short sm2(int i) { return 0; } |
aoqi@0 | 282 | int im2(int i) { return 0; } |
aoqi@0 | 283 | long lm2(int i) { return 0; } |
aoqi@0 | 284 | float fm2(int i) { return 0; } |
aoqi@0 | 285 | double dm2(int i) { return 0; } |
aoqi@0 | 286 | Object om2(int i) { return null; } |
aoqi@0 | 287 | String tm2(int i) { return ""; } |
aoqi@0 | 288 | List<String> gm2(int i) { return null; } |
aoqi@0 | 289 | void vm2(int i) { } |
aoqi@0 | 290 | |
aoqi@0 | 291 | // overloaded native methods |
aoqi@0 | 292 | native byte bmn1(); |
aoqi@0 | 293 | native short smn1(); |
aoqi@0 | 294 | native int imn1(); |
aoqi@0 | 295 | native long lmn1(); |
aoqi@0 | 296 | native float fmn1(); |
aoqi@0 | 297 | native double dmn1(); |
aoqi@0 | 298 | native Object omn1(); |
aoqi@0 | 299 | native String tmn1(); |
aoqi@0 | 300 | native List<String> gmn1(); |
aoqi@0 | 301 | native void vmn1(); |
aoqi@0 | 302 | |
aoqi@0 | 303 | native byte bmn2(int i); |
aoqi@0 | 304 | native short smn2(int i); |
aoqi@0 | 305 | native int imn2(int i); |
aoqi@0 | 306 | native long lmn2(int i); |
aoqi@0 | 307 | native float fmn2(int i); |
aoqi@0 | 308 | native double dmn2(int i); |
aoqi@0 | 309 | native Object omn2(int i); |
aoqi@0 | 310 | native String tmn2(int i); |
aoqi@0 | 311 | native List<String> gmn2(int i); |
aoqi@0 | 312 | native void vmn2(int i); |
aoqi@0 | 313 | |
aoqi@0 | 314 | // arg types for Java methods |
aoqi@0 | 315 | void mb(byte b) { } |
aoqi@0 | 316 | void ms(short s) { } |
aoqi@0 | 317 | void mi(int i) { } |
aoqi@0 | 318 | void ml(long l) { } |
aoqi@0 | 319 | void mf(float f) { } |
aoqi@0 | 320 | void md(double d) { } |
aoqi@0 | 321 | void mo(Object o) { } |
aoqi@0 | 322 | void mt(String t) { } |
aoqi@0 | 323 | void mg(List<String> g) { } |
aoqi@0 | 324 | |
aoqi@0 | 325 | // arg types for native methods |
aoqi@0 | 326 | native void mbn(byte b); |
aoqi@0 | 327 | native void msn(short s); |
aoqi@0 | 328 | native void min(int i); |
aoqi@0 | 329 | native void mln(long l); |
aoqi@0 | 330 | native void mfn(float f); |
aoqi@0 | 331 | native void mdn(double d); |
aoqi@0 | 332 | native void mon(Object o); |
aoqi@0 | 333 | native void mtn(String t); |
aoqi@0 | 334 | native void mgn(List<String> g); |
aoqi@0 | 335 | } |
aoqi@0 | 336 | |
aoqi@0 | 337 | class Inner2 { |
aoqi@0 | 338 | // simple types |
aoqi@0 | 339 | byte b; |
aoqi@0 | 340 | short s; |
aoqi@0 | 341 | int i; |
aoqi@0 | 342 | long l; |
aoqi@0 | 343 | float f; |
aoqi@0 | 344 | double d; |
aoqi@0 | 345 | Object o; |
aoqi@0 | 346 | String t; |
aoqi@0 | 347 | List<String> g; |
aoqi@0 | 348 | |
aoqi@0 | 349 | // constants |
aoqi@0 | 350 | static final byte bc = 0; |
aoqi@0 | 351 | static final short sc = 0; |
aoqi@0 | 352 | static final int ic = 0; |
aoqi@0 | 353 | static final long lc = 0; |
aoqi@0 | 354 | static final float fc = 0; |
aoqi@0 | 355 | static final double dc = 0; |
aoqi@0 | 356 | //static final Object oc = null; |
aoqi@0 | 357 | static final String tc = ""; |
aoqi@0 | 358 | //static final List<String> gc = null; |
aoqi@0 | 359 | |
aoqi@0 | 360 | // simple arrays |
aoqi@0 | 361 | byte[] ba; |
aoqi@0 | 362 | // short[] sa; // not handled corrected by javah v6 |
aoqi@0 | 363 | int[] ia; |
aoqi@0 | 364 | long[] la; |
aoqi@0 | 365 | float[] fa; |
aoqi@0 | 366 | double[] da; |
aoqi@0 | 367 | Object[] oa; |
aoqi@0 | 368 | String[] ta; |
aoqi@0 | 369 | List<String>[] ga; |
aoqi@0 | 370 | |
aoqi@0 | 371 | // multidimensional arrays |
aoqi@0 | 372 | byte[][] baa; |
aoqi@0 | 373 | short[][] saa; |
aoqi@0 | 374 | int[][] iaa; |
aoqi@0 | 375 | long[][] laa; |
aoqi@0 | 376 | float[][] faa; |
aoqi@0 | 377 | double[][] daa; |
aoqi@0 | 378 | Object[][] oaa; |
aoqi@0 | 379 | String[][] taa; |
aoqi@0 | 380 | List<String>[] gaa; |
aoqi@0 | 381 | |
aoqi@0 | 382 | // simple Java methods |
aoqi@0 | 383 | byte bm() { return 0; } |
aoqi@0 | 384 | short sm() { return 0; } |
aoqi@0 | 385 | int im() { return 0; } |
aoqi@0 | 386 | long lm() { return 0; } |
aoqi@0 | 387 | float fm() { return 0; } |
aoqi@0 | 388 | double dm() { return 0; } |
aoqi@0 | 389 | Object om() { return null; } |
aoqi@0 | 390 | String tm() { return ""; } |
aoqi@0 | 391 | List<String> gm() { return null; } |
aoqi@0 | 392 | void vm() { } |
aoqi@0 | 393 | |
aoqi@0 | 394 | // simple native methods |
aoqi@0 | 395 | native byte bmn(); |
aoqi@0 | 396 | native short smn(); |
aoqi@0 | 397 | native int imn(); |
aoqi@0 | 398 | native long lmn(); |
aoqi@0 | 399 | native float fmn(); |
aoqi@0 | 400 | native double dmn(); |
aoqi@0 | 401 | native Object omn(); |
aoqi@0 | 402 | native String tmn(); |
aoqi@0 | 403 | native List<String> gmn(); |
aoqi@0 | 404 | native void vmn(); |
aoqi@0 | 405 | |
aoqi@0 | 406 | // overloaded Java methods |
aoqi@0 | 407 | byte bm1() { return 0; } |
aoqi@0 | 408 | short sm1() { return 0; } |
aoqi@0 | 409 | int im1() { return 0; } |
aoqi@0 | 410 | long lm1() { return 0; } |
aoqi@0 | 411 | float fm1() { return 0; } |
aoqi@0 | 412 | double dm1() { return 0; } |
aoqi@0 | 413 | Object om1() { return null; } |
aoqi@0 | 414 | String tm1() { return ""; } |
aoqi@0 | 415 | List<String> gm1() { return null; } |
aoqi@0 | 416 | void vm1() { } |
aoqi@0 | 417 | |
aoqi@0 | 418 | byte bm2(int i) { return 0; } |
aoqi@0 | 419 | short sm2(int i) { return 0; } |
aoqi@0 | 420 | int im2(int i) { return 0; } |
aoqi@0 | 421 | long lm2(int i) { return 0; } |
aoqi@0 | 422 | float fm2(int i) { return 0; } |
aoqi@0 | 423 | double dm2(int i) { return 0; } |
aoqi@0 | 424 | Object om2(int i) { return null; } |
aoqi@0 | 425 | String tm2(int i) { return ""; } |
aoqi@0 | 426 | List<String> gm2(int i) { return null; } |
aoqi@0 | 427 | void vm2(int i) { } |
aoqi@0 | 428 | |
aoqi@0 | 429 | // overloaded native methods |
aoqi@0 | 430 | native byte bmn1(); |
aoqi@0 | 431 | native short smn1(); |
aoqi@0 | 432 | native int imn1(); |
aoqi@0 | 433 | native long lmn1(); |
aoqi@0 | 434 | native float fmn1(); |
aoqi@0 | 435 | native double dmn1(); |
aoqi@0 | 436 | native Object omn1(); |
aoqi@0 | 437 | native String tmn1(); |
aoqi@0 | 438 | native List<String> gmn1(); |
aoqi@0 | 439 | native void vmn1(); |
aoqi@0 | 440 | |
aoqi@0 | 441 | native byte bmn2(int i); |
aoqi@0 | 442 | native short smn2(int i); |
aoqi@0 | 443 | native int imn2(int i); |
aoqi@0 | 444 | native long lmn2(int i); |
aoqi@0 | 445 | native float fmn2(int i); |
aoqi@0 | 446 | native double dmn2(int i); |
aoqi@0 | 447 | native Object omn2(int i); |
aoqi@0 | 448 | native String tmn2(int i); |
aoqi@0 | 449 | native List<String> gmn2(int i); |
aoqi@0 | 450 | native void vmn2(int i); |
aoqi@0 | 451 | |
aoqi@0 | 452 | // arg types for Java methods |
aoqi@0 | 453 | void mb(byte b) { } |
aoqi@0 | 454 | void ms(short s) { } |
aoqi@0 | 455 | void mi(int i) { } |
aoqi@0 | 456 | void ml(long l) { } |
aoqi@0 | 457 | void mf(float f) { } |
aoqi@0 | 458 | void md(double d) { } |
aoqi@0 | 459 | void mo(Object o) { } |
aoqi@0 | 460 | void mt(String t) { } |
aoqi@0 | 461 | void mg(List<String> g) { } |
aoqi@0 | 462 | |
aoqi@0 | 463 | // arg types for native methods |
aoqi@0 | 464 | native void mbn(byte b); |
aoqi@0 | 465 | native void msn(short s); |
aoqi@0 | 466 | native void min(int i); |
aoqi@0 | 467 | native void mln(long l); |
aoqi@0 | 468 | native void mfn(float f); |
aoqi@0 | 469 | native void mdn(double d); |
aoqi@0 | 470 | native void mon(Object o); |
aoqi@0 | 471 | native void mtn(String t); |
aoqi@0 | 472 | native void mgn(List<String> g); |
aoqi@0 | 473 | } |
aoqi@0 | 474 | |
aoqi@0 | 475 | } |