test/tools/javac/meth/XlintWarn.java

changeset 810
15484cb7e5ae
parent 742
fdc67f5170e9
child 820
2d5aff89aaa3
     1.1 --- a/test/tools/javac/meth/XlintWarn.java	Tue Jan 04 17:10:35 2011 -0800
     1.2 +++ b/test/tools/javac/meth/XlintWarn.java	Wed Jan 05 09:59:01 2011 +0000
     1.3 @@ -23,7 +23,7 @@
     1.4  
     1.5  /*
     1.6   * @test
     1.7 - * @bug 6999067
     1.8 + * @bug 6999067 7010194
     1.9   * @summary cast for invokeExact call gets redundant cast to <type> warnings
    1.10   * @author mcimadamore
    1.11   *
    1.12 @@ -34,9 +34,7 @@
    1.13  
    1.14  class XlintWarn {
    1.15      void test(MethodHandle mh) throws Throwable {
    1.16 -        int i1 = (int)mh.invoke();
    1.17 -        int i2 = (int)mh.invokeExact();
    1.18 -        int i3 = (int)mh.invokeVarargs();
    1.19 -        int i4 = (int)InvokeDynamic.test();
    1.20 +        int i1 = (int)mh.invokeExact();
    1.21 +        int i2 = (int)mh.invokeVarargs();
    1.22      }
    1.23  }

mercurial