test/tools/javac/lambda/methodReference/MethodRef1.java

changeset 1435
9b26c96f5138
parent 1415
01c9d4161882
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/lambda/methodReference/MethodRef1.java	Fri Nov 30 15:14:25 2012 +0000
     1.2 +++ b/test/tools/javac/lambda/methodReference/MethodRef1.java	Fri Nov 30 15:14:36 2012 +0000
     1.3 @@ -70,9 +70,6 @@
     1.4          b = MethodRef1::foo; //static reference to foo(int)
     1.5          b.m(1);
     1.6  
     1.7 -        b = new MethodRef1()::foo; //instance reference to static methods, supported for now
     1.8 -        b.m(1);
     1.9 -
    1.10          b = MethodRef1::bar; //static reference to bar(int)
    1.11          b.m(2);
    1.12  

mercurial