langtools/test/tools/javac/lambda/methodReference/SamConversion.java
changeset 14724 b542db73539a
parent 14547 86d8d242b0c4
child 15374 fb8f6acf09cc
equal deleted inserted replaced
14723:46aa71a5e4e0 14724:b542db73539a
   131         try {
   131         try {
   132             assertTrue(bar.m(1) == 6);
   132             assertTrue(bar.m(1) == 6);
   133         } catch (Exception e) {
   133         } catch (Exception e) {
   134             assertTrue(false);
   134             assertTrue(false);
   135         }
   135         }
   136 
       
   137         bar = new A()::method6;
       
   138         try {
       
   139             bar.m(1);
       
   140             assertTrue(false);
       
   141         } catch (MyException e) {
       
   142         } catch (Exception e) {
       
   143             assertTrue(false);
       
   144         }
       
   145     }
   136     }
   146 
   137 
   147     /**
   138     /**
   148      * Test SAM conversion of method reference in method/constructor argument context
   139      * Test SAM conversion of method reference in method/constructor argument context
   149      */
   140      */